scapecord.py is a "construction sign" discord bot written in discord.py.
When your bot is under maintenance, This bot becomes a "Scapegoat".
- Set bot state "Do not disturb"
- Send custom response when the bot is mensioned
- Apply to both mention and custom prefix-command(ex: $start, $help, etc)
# coding: UTF-8
token = 'YOUR_DISCORD_TOKEN'
response = "Sorry, I'm down for maintenance now. Please wait a moment."
bot_command_prefix = '$'
# coding: UTF-8
import scapecord
scapecord.run()
$ git clone git@github.com:cod-sushi/scapecord.py.git
$ cd scapecord.py
$ pip install -r requirement.txt
You can use example/
. There are sample code and config.py.
# config.py
# coding: UTF-8
token = 'YOUR_DISCORD_TOKEN'
response = "Sorry, I'm down for maintenance now. Please wait a moment."
# If your bot is discord.ext.commands.Bot:
bot_command_prefix = '$'
# If your bot is discord.Client:
bot_command_prefix = None
$ vim main.py
# coding: UTF-8
import scapecord
scapecord.run()
$ python main.py