A discord bot with commands surrounding The Simpsons, Futurama and Rick and Morty and more!
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
cogs
settings
.gitignore
LICENSE
README.md
bot.py
index.js
package-lock.json
prefixes.py
requirements.txt

README.md

Flanders

FlandersBOT

A bot for sharing your favourite references!

A discord bot with commands surrounding The Simpsons, Futurama, Rick and Morty and more!

FlandersBOT provides commands for The Simpsons, Futurama and Rick and Morty quoting/searching/content. FlandersBOT uses Frinkiac, Morbotron and Master of All Science to provide commands for both random and searchable Simpsons, Futurama and Rick and Morty images/gifs with their appropriate quotes embedded.

Add FlandersBOT to your Discord Server

To invite FlandersBOT to your own discord server and start using it now, click here

Thanks to https://discordbots.org/ for listing FlandersBOT!
If you like FlandersBOT, help the bot grow by voting here

Discord Music Bot

Requirements

I'd prefer that instead of running an instance of FlandersBOT yourself you'd just invite FlandersBOT to your own server.
Or go ahead anyway.

Dependencies

Requires Python 3.5+
python3 -m pip install -U -r requirements.txt

Utilises the latest version of discord.py (rewrite)
Depends upon the async branch of CompuGlobal

Requires PostgreSQL 9.6+

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install postgresql

Requires Node.js v11.6+ for dbl webhook

$ npm install dblapi.js
$ npm install pg

Config

Update settings/config.json with required credentials.

Database Setup

Create Database

sudo -u postgres psql
CREATE ROLE IF NOT EXISTS ned WITH LOGIN PASSWORD '<password>';
CREATE DATABASE flandersdb OWNER ned;

Create Table

$ psql -h 127.0.0.1 -d flandersdb -U ned
CREATE TABLE IF NOT EXISTS VoteHistory (
	voteID serial PRIMARY KEY,
	userID bigint,
	voteType text CHECK (voteType IN ('upvote', 'test')),
	isWeekend boolean,
	votedAt timestamp default (now() at time zone 'utc')
);

Usage

The bot commands can be executed using several different methods/prefixes, to minimise clashing with other discord bots. Any command can be prefixed with an @mention, ned or diddly/doodly when you really want to flaunt those Flanders-isms.

If you're not a fan of any of these prefixes, you can add a new prefix to your server using the setprefix command. (Requires Manage Server Pemissions)

Usage Examples:

@FlandersBOT#0680 info
ned info
diddly info
doodly info
diddly-info
doodly-info

All examples above are valid methods of executing any command below.

Commands

General

Command Description
help Will send a personal message with a list of the commands.
info Will send a personal message with more information about the bot.
prefix Will post the prefixes FlandersBOT responds to on your server.
setprefix [prefix] Sets a prefix FlandersBOT will respond to on your server. (Manage Server Pemissions)
feedback Send a feedback message or suggestions.
stats Will post some of FlandersBOT's statistics.
notifications Toggle notifications for when you are able to vote.
epinfo Will post episode information on the last post made by FlandersBOT in the channel.
meme [caption] Will repost the last gif made by FlandersBOT in the channel with the new caption.

Simpsons

Command Description
simpsons Will post a random Simpsons gif with caption.
simpsons [quote] Searches for a Simpsons gif using the quote.
simpsonstrivia Will start a game of trivia using 100+ questions

Futurama

Command Description
futurama Will post a random Futurama gif with caption.
futurama [quote] Searches for a Futurama gif using the quote.
futuramatrivia Will start a game of trivia using 100+ questions

Rick and Morty

Command Description
rickandmorty Will post a random Rick and Morty gif with caption.
rickandmorty [quote] Searches for a Rick and Morty gif using the quote.

30 Rock

Command Description
30rock Will post a random Rick and Morty gif with caption.
30rock [quote] Searches for a Rick and Morty gif using the quote.

West Wing

Command Description
westwing Will post a random Rick and Morty gif with caption.
westwing [quote] Searches for a Rick and Morty gif using the quote.

Preview

Support Server

If you need any help with FlandersBOT, would like to provide feedback, suggestions or have any other questions regarding FlandersBOT, join the FlandersBOT Support Server on discord:

Credits

Creators of Frinkiac, Morbotron, Master of All Science, GoodGod Lemon and Capital Beat Us:

Paul Kehrer Sean Schulte
Allie Young
Source of the higher quality Adventures of Ned Flanders image
/u/nmcfaden