A Discord bot and user app that provides information about upcoming scroll events and moon phases within the MMORPG Aberoth. Built with the Aberoth Ephemeris module—which is also developed by GitHub user jvandag under an MIT license—which can be installed separately from PyPI or via a GitHub release for use in other contexts.
Ephemeris_Bot_Example_Scroll_Menu.mp4
If you're just looking to install Aberoth Ephemeris—the module that creates the prediction information—for your own project, you can install it with
pip install aberoth-ephemeris
Be sure to check the Aberoth Ephemeris repository for documentation on how to use the module for your own applications.
Otherwise, follow along to set up the Discord bot.
git clone https://github.com/aberoth-community/ephemeris-discord-bot
If you're using a bash terminal you can simply run
firstTimeSetup.sh
This will set up a venv and install the dependencies. Otherwise, optionally, you can configure a venv through other means and use
pip install .
See example.env for structure
Change the emojis in variables.py to your own variables that your bot instance can use. It is recommended to upload your emojis to the emojis section for your bot in the Discord developer dashboard.
python -m ephemeris
Optional - 6. Run web server in separate terminal to intake auto-calibration data from separate script
cd ephemeris/UpdateWebServer
waitress-serve --listen=0.0.0.0:5000 --threads=1 varUpdateWS:app
An excellent separate script that can be used to send live calibration data to the Aberoth Ephemeris module used for this bot is the Ephemeris Overheard Hook made by GitHub user jvandag. It is built on GitHub user ashnel3's Overheard Scrapper which scrapes the Aberoth overheard page to find changes in scroll state, moon phase, time of day, and number of players online.
If you're hosting your own distribution of this bot, be sure to configure the ownerID
and disableWhitelisting
variables variables within the variables.py file located in the config directory within the bot sub-directory.
Only the specified owner may use the /update_whitelist
command which can be used to add users and guilds/servers to the whitelist. By default, all users and guilds are not whitelisted and thus unable to use the bot or user installable.
If disableWhitelisting
is set to True
, then all users will be able to utilize bot commands and menus as well as the user installable commands and menus regardless of the current whitelist settings.
Command | Description & Parameters |
---|---|
|
Description: Adds a specified guild or user to the whitelist, allowing them to use the bot while in whitelist mode. Parameters:
|
|
Description: Responds with the time the command user's and—if used in a guild—the guild's permissions expire. |
|
Description: Creates an embed menu that allows users to request glows and darks for a selected day or range of days.
|
|
Description: User App/Installable version only. Creates an embed menu that allows users to request glows and darks for a selected day or range of days.
|
|
Description: Creates an embed menu that allows users to request start information on the current and upcoming moon phases.
|
|
Description: Creates an embed menu that allows users to request start information on the current and upcoming moon phases.
|
|
Description: Sets the emojis used by persistent menus within the server.
|
|
Description: Sets the emojis used by the command user's user app/installable menus.
|