blueewhitee / rubikbot

Email verification bot for UNSW Rubik Society's Discord server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RubikBot

Verification bot for UNSW Rubik Society's Discord server based on lo-fi society's bot, seba.

  • Sends DM with verification instructions when prompted with !verifyme
  • Verifies members using a code emailed by this google script and updates their roles

Note that this bot does not send emails. This google script added to your verification form will send emails. RubikBot verifies using codes sent out by this script.

Installation

Download the source code from the latest release.

You can run this bot in Docker on a Linux server with the start script.

$ ./start

Alternatively, you can manually install dependencies and run it. This bot requires Node.js to run.

$ npm install
$ npm start

Configuration

Copy config-sample.json to config.json and set the following values:

  • prefix is the string proceeding a bot command
  • token is the Discord bot token. Get this from the Discord Developer Portal
  • server has info regarding your server as follows:
    • id is the ID of your Discord server
    • name is the name of your society or Discord server
    • form is a link to your verification form
  • channels has the IDs of channels in your server:
    • verify is the ID of the channel for members to call !verifyme in
  • roles has the IDs of user roles in your server:
    • verified is the ID of the role to assign to members once they verify
    • exec is the ID of the exec or admin role to use privileged bot commands
  • seed is a secret value used to generate the verification code. Must be the same as the google script seed value

About

Email verification bot for UNSW Rubik Society's Discord server

License:MIT License


Languages

Language:JavaScript 96.6%Language:Shell 2.3%Language:Dockerfile 1.1%