xbony2 / ESAEBSAD3

A Discord bot written in Ruby for manipulation of the FTB Wiki.
MIT License
2 stars 0 forks source link
bot discordrb ftb-wiki mediawiki mediawiki-bot ruby wiki

ESAEBSAD3

A Discord bot used by the Official FTB Wiki (mostly me) to accomplish various automated tasks. Currently a work-in-progress!

(TODO: update README with possible Postgres requirements)

E-say-bee-what?

ESAEBSAD3 pronounced /i.ˈseɪ.bi.sæd.θɹiː/ (e-say-b-sad-three). It stands for Experimental Self Aware Electronic Based Space Analyzing Droid [in the] 3rd-Dimension. Despite being in the 3rd dimension, it can't analyze space very well, so instead it just does random tasks that I want it to. Mostly this is just find-replace operations and things like that.

Setup

A Discord application token should already be generated, and a bot login and password should be generated (assuming you are using Fandom; otherwise, it's probably just the username and password for the wikiLogin and wikiToken).

ESAEBSAD3 handles all tokens and other login/setup information through environmental variables. An .env file can be loaded with all of the variables in example.env. Note the following:

This is a Ruby application, so Ruby should be installed. Bundler should be installed as well; running bundle will install all other dependencies.

Running

  1. Setup the appropriate environmental variables listed in example.env. Locally, I do this by running export $(cat .env | xargs), or through Heroku, I have config vars set up.
  2. Run ruby run.rb to start the bot.

Usage

Just run the command !help and it will list all of the commands and how to use them. ezpz.

Dependencies

Here are the dependencies of ESAEBSAD3:

The specific versions are listed in the Gemfile.

Earlier bots