95 lines
3.8 KiB
Markdown
95 lines
3.8 KiB
Markdown
|
# OrthoBot
|
||
|
[![Join us on Discord](https://img.shields.io/discord/362503610006765568.svg)](https://discord.gg/seKEJUn) [![Discord Bots](https://discordbots.org/api/widget/lib/361033318273384449.png)](https://discordbots.org/bot/361033318273384449)
|
||
|
|
||
|
A Discord bot for Eastern Orthodox daily readings, feast days, and fasts.
|
||
|
|
||
|
---
|
||
|
|
||
|
Installation:
|
||
|
|
||
|
```bash
|
||
|
git clone https://github.com/vypr/OrthoBot.git
|
||
|
cd OrthoBot
|
||
|
python3 -m venv venv
|
||
|
source venv/bin/activate
|
||
|
cp src/config.example.ini src/config.ini
|
||
|
$EDITOR src/config.ini
|
||
|
pip install -U "https://github.com/Rapptz/discord.py/archive/rewrite.zip#egg=discord.py[voice]"
|
||
|
pip install -U tinydb colorama requests bs4 lxml
|
||
|
python src/bot.py
|
||
|
```
|
||
|
|
||
|
---
|
||
|
|
||
|
Commands:
|
||
|
|
||
|
* `+orthobot` - the help command
|
||
|
* `+versions` - show all Bible translations you can set
|
||
|
* `+setversion VER` - set a preferred version
|
||
|
* `+version` - display your current version
|
||
|
* `+versioninfo VER` - read information about a version, using the acronym
|
||
|
* `+random` - get a random Bible verse
|
||
|
* `+verseoftheday` (`+votd`) - get the verse of the day
|
||
|
* `+headings enable/disable` - enable or disable the headings that display on certain verses
|
||
|
* `+versenumbers enable/disable` - enable or disable verse numbers from showing on each line
|
||
|
* `+languages` - show all available language translations you can set
|
||
|
* `+setlanguage LANG` - set a preferred language
|
||
|
* `+language` - display your current language
|
||
|
* `+users` - list all users throughout all servers (not counting duplicates)
|
||
|
* `+servers` - list all servers OrthoBot is in
|
||
|
* `+invite` - get the invite link for OrthoBot
|
||
|
|
||
|
Extra-Biblical Commands:
|
||
|
|
||
|
* `+creeds` - the ecumenical creeds (contains further commands)
|
||
|
|
||
|
Guild Commands:
|
||
|
|
||
|
* `+setguildversion ABBV` - set the guild's default version to ABBV
|
||
|
* `+guildversion` - see the default version for this guild
|
||
|
* `+setguildlanguage LANG` - set the guild's default language to LANG
|
||
|
* `+guildlanguage` - see the guild's default language, if one is set (default: english)
|
||
|
* `+setvotdtime TIME` - set the VOTD scheduler time to TIME (TIME must be 24h format and in UTC)
|
||
|
* `+clearvotdtime` - clear the VOTD scheduler time
|
||
|
* `+votdtime` - see the VOTD scheduler time and channel
|
||
|
|
||
|
Bot Owner Commands:
|
||
|
|
||
|
* `+addversion versionname abbv hasOT hasNT hasDEU` (`+av`) - add a version
|
||
|
* `+puppet message` - say something as the bot (requires 'Manage Messages' perms in order to fully function)
|
||
|
* `+eval python` - execute python code (it's an exec() wrapper)
|
||
|
* `+userid name#discriminator` - grab a user id by name and discriminator
|
||
|
* `+ban id reason` - ban an id from using the bot (works for both users and guilds)
|
||
|
* `+unban id reason` - unban an id from using the bot (works for both users and guilds)
|
||
|
* `+reason id` - get ban reason for an id
|
||
|
* `+optout id` - optout an id from using the bot (works for users)
|
||
|
* `+unoptout id` - unoptout an id from using the bot (works for users)
|
||
|
* `+leave NAME` - leave the current or NAME server (argument optional)
|
||
|
|
||
|
Invite OrthoBot to your server! https://discordapp.com/oauth2/authorize?client_id=361033318273384449&scope=bot&permissions=93248
|
||
|
|
||
|
---
|
||
|
|
||
|
### Permissions
|
||
|
|
||
|
OrthoBot requires the following permissions in order to function properly:
|
||
|
|
||
|
- Read Messages, Send Messages - Obviously.
|
||
|
- Embed Links - This is for OrthoBot to use the Discord `embed` object, as OrthoBot uses these for everything besides verses.
|
||
|
|
||
|
---
|
||
|
|
||
|
### Versioning
|
||
|
|
||
|
Every commit, add 1 to the last number of the version, if the result is 10,
|
||
|
add 1 to the second number of the version. If the result of the second number is 10,
|
||
|
add 1 to the first number of the version.
|
||
|
|
||
|
Examples:
|
||
|
2.8.9 --> Commit --> 2.9.0
|
||
|
2.9.8 --> Commit --> 2.9.9
|
||
|
2.9.9 --> Commit --> 3.0.0
|
||
|
|
||
|
Every commit done involving the code itself must have the version number updated.
|
||
|
Commits done to the README, the package.json file (except when adding dependencies),
|
||
|
and the dotfiles do not need to have the version number updated.
|