Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py) by Roxxers#7443. | Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py) by Roxxers#7443. | ||||
Roxbot is designed to be provide many different services for users and modertors alike with a focus on customisability. Roxbot also has a focus on being inclusive and being fun for all kinds of people. Roxbot is a bot written by a queer woman with the lgbt community in mind. | |||||
Roxbot is designed to be provide many different services for users and moderators alike with a focus on customisability. Roxbot also has a focus on being inclusive and being fun for all kinds of people. Roxbot is a bot written by a queer woman with the lgbt community in mind. | |||||
[Changelog](https://github.com/Roxxers/roxbot/blob/master/CHANGELOG.md) - [Docs](https://roxxers.github.io/roxbot/) - [Command Docs](https://roxxers.github.io/roxbot/commands/) | [Changelog](https://github.com/Roxxers/roxbot/blob/master/CHANGELOG.md) - [Docs](https://roxxers.github.io/roxbot/) - [Command Docs](https://roxxers.github.io/roxbot/commands/) | ||||
$ python3 -m pip install -r requirements.txt | $ python3 -m pip install -r requirements.txt | ||||
``` | ``` | ||||
4. Edit Roxbot's config to add your bot accounts token (and imgur api token if you plan to use the Reddit cog) to the config, and also edit some other config settings. Then rename it so that Roxbot will be able to read it. | |||||
4. Edit Roxbot's config to add your bot accounts token (and Imgur api token if you plan to use the Reddit cog) to the config, and also edit some other config settings. Then rename it so that Roxbot will be able to read it. | |||||
```bash | ```bash | ||||
$ nano roxbot/settings/roxbot_example.conf | $ nano roxbot/settings/roxbot_example.conf |
Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py) by Roxxers#7443. | Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py) by Roxxers#7443. | ||||
Roxbot is designed to be provide many different services for users and modertors alike with a focus on customisability. Roxbot also has a focus on being inclusive and being fun for all kinds of people. Roxbot is a bot written by a queer woman with the lgbt community in mind. | |||||
Roxbot is designed to be provide many different services for users and moderators alike with a focus on customisability. Roxbot also has a focus on being inclusive and being fun for all kinds of people. Roxbot is a bot written by a queer woman with the lgbt community in mind. | |||||
[Changelog](https://github.com/Roxxers/roxbot/blob/master/CHANGELOG.md) - [Docs](https://roxxers.github.io/roxbot/) - [Command Docs](https://roxxers.github.io/roxbot/commands/) | [Changelog](https://github.com/Roxxers/roxbot/blob/master/CHANGELOG.md) - [Docs](https://roxxers.github.io/roxbot/) - [Command Docs](https://roxxers.github.io/roxbot/commands/) | ||||
$ python3 -m pip install -r requirements.txt | $ python3 -m pip install -r requirements.txt | ||||
``` | ``` | ||||
4. Edit Roxbot's config to add your bot accounts token (and imgur api token if you plan to use the Reddit cog) to the config, and also edit some other config settings. Then rename it so that Roxbot will be able to read it. | |||||
4. Edit Roxbot's config to add your bot accounts token (and Imgur api token if you plan to use the Reddit cog) to the config, and also edit some other config settings. Then rename it so that Roxbot will be able to read it. | |||||
```bash | ```bash | ||||
$ nano roxbot/settings/roxbot_example.conf | $ nano roxbot/settings/roxbot_example.conf |
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# ______ _______ ________ _____ _____ | |||||
# | ___ \ _ \ \ / /| ___ \| _ |_ _| | |||||
# | |_/ / | | |\ V / | |_/ /| | | | | | | |||||
# | /| | | |/ \ | ___ \| | | | | | | |||||
# | |\ \\ \_/ / /^\ \| |_/ /\ \_/ / | | | |||||
# \_| \_|\___/\/ \/\____/ \___/ \_/ | |||||
# ____ _ _ | |||||
# | _ \ _____ _| |__ ___ | |_ | |||||
# | |_) / _ \ \/ / '_ \ / _ \| __| | |||||
# | _ < (_) > <| |_) | (_) | |_ | |||||
# |_| \_\___/_/\_\_.__/ \___/ \__| | |||||
# Roxbot: An inclusive modular multi-purpose Discord bot. | # Roxbot: An inclusive modular multi-purpose Discord bot. | ||||
__title__ = "roxbot" | __title__ = "roxbot" | ||||
__author__ = "Roxanne Gibson" | __author__ = "Roxanne Gibson" | ||||
__license__ = "MIT" | __license__ = "MIT" | ||||
__copyright__ = "Copyright 2015-2017 Roxanne Gibson" | |||||
__copyright__ = "Copyright 2015-2017 Roxanne Gibson <me@roxxers.xyz>" | |||||
__version__ = "2.0.0" | __version__ = "2.0.0" | ||||
__description__ = """Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py) by Roxxers#7443. | __description__ = """Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py) by Roxxers#7443. | ||||
Roxbot is designed to be provide many different services for users and modertors alike with a focus on customisability. | |||||
Roxbot is designed to be provide many different services for users and moderators alike with a focus on customisability. | |||||
Roxbot also has a focus on being inclusive and being fun for all kinds of people. Roxbot is a bot written by a queer woman with the lgbt community in mind. | Roxbot also has a focus on being inclusive and being fun for all kinds of people. Roxbot is a bot written by a queer woman with the lgbt community in mind. | ||||
config = configparser.ConfigParser() | config = configparser.ConfigParser() | ||||
config.read("roxbot/settings/roxbot.conf") | config.read("roxbot/settings/roxbot.conf") | ||||
command_prefix = config["Roxbot"]["Command_Prefix"] | |||||
owner = int(config["Roxbot"]["OwnerID"]) | |||||
token = config["Tokens"]["Discord"] | |||||
imgur_token = config["Tokens"]["Imgur"] | |||||
if config["Backups"]["enabled"] == "False": | |||||
backup_enabled = False | |||||
else: | |||||
backup_enabled = True | |||||
backup_rate = int(config["Backups"]["rate"]) * 60 # Convert minutes to seconds | |||||
try: | |||||
command_prefix = config["Roxbot"]["Command_Prefix"] | |||||
owner = int(config["Roxbot"]["OwnerID"]) | |||||
token = config["Tokens"]["Discord"] | |||||
imgur_token = config["Tokens"]["Imgur"] | |||||
if config["Backups"]["enabled"] == "False": | |||||
backup_enabled = False | |||||
else: | |||||
backup_enabled = True | |||||
backup_rate = int(config["Backups"]["rate"]) * 60 # Convert minutes to seconds | |||||
except KeyError: | |||||
print("PREFERENCE FILE MISSING. Please make sure there is a file called 'roxbot.conf' in the settings folder") | |||||
exit(1) | |||||
datetime_formatting = "{:%a %Y/%m/%d %H:%M:%S} UTC" | datetime_formatting = "{:%a %Y/%m/%d %H:%M:%S} UTC" |