A-Bot

A-Bot

A multi-purpose Discord bot built with inspiration from the University of Michigan EECS 370 course Discord server. Adapted from zombbblob.

Features

Setup

Prerequisites

Installation

yarn install

Copy .env.example to .env and fill in your values:

cp .env.example .env
DISCORD_TOKEN=your-discord-bot-token
ROLE_MESSAGE_CHANNEL=channel-id-for-reaction-roles
ROLE_MESSAGE_ID=message-id-for-reaction-roles

Development

yarn dev

Build & Run

yarn build
yarn start

Tests

yarn test

Commands

General

Command Description
/help Prints the help menu
/sourcecode Links to this repository
/gpr Grass privileges revoked

EECS 370

Command Description
/coursenotes Link to the unofficial course notes

Server

Command Description
/invite [n] Generate an invite link with optional limited uses

Administration (requires Administrator permission)

Command Description
/send <channel> <message> Send a message as the bot
/reply <message_link> <reply_text> Reply to a message as the bot
/react <message_link> <emoji> React to a message as the bot
/create <semester-year> Create a semester category with channels (e.g. F23)

BotCasino

Command Description
/joincasino Join the casino
/leavecasino Leave the casino (cannot be undone)
/getjob Get assigned a random job for coin income
/work Earn your hourly paycheck (1h cooldown)
/bonus Claim a one-time starting bonus
/coins [user] Check your or another user’s balance
/dice <bet> Roll dice against an opponent
/roshambo <bet> Play rock paper scissors
/coinflip <bet> Flip a coin, heads or tails

Contributing

A-Bot is open source — contributions are welcome!