- Keep threads alive once a week
- Support DCouter.space bot and ban main accounts of banned alt-accounts
- Kick @unverified group members every 8 hours
Slash commands can take some time to get registered globally, so if you want to test a command you should use
the @app_commands.guilds()
decorator so that it gets registered instantly. Example:
@commands.hybrid_command(
name="command",
description="Command description",
)
@app_commands.guilds(discord.Object(id=GUILD_ID)) # Place your guild ID here
When using the template you confirm that you have read the license and comprehend that I can take down your repository if you do not meet these requirements.
Please do not open issues or pull requests about things that are written in the TODO file, they are already under work for a future version of the template.
- Clone/Download the repository
- To clone it and get the updates you can definitely use the command
git clone
- To clone it and get the updates you can definitely use the command
- Create a discord bot here
- Get your bot token
- Invite your bot on servers using the following invite:
https://discord.com/oauth2/authorize?&client_id=YOUR_APPLICATION_ID_HERE&scope=bot+applications.commands&permissions=PERMISSIONS (
Replace
YOUR_APPLICATION_ID_HERE
with the application ID and replacePERMISSIONS
with the required permissions your bot needs that it can be get at the bottom of a this page https://discord.com/developers/applications/YOUR_APPLICATION_ID_HERE/bot)
example:https://discord.com/api/oauth2/authorize?client_id=997115454139154452&permissions=277025482816&scope=bot%20applications.commands
To set up the bot is as simple as possible. Copy the config.json.example to config.json file where you can put the needed things to edit.
Here is an explanation of what everything is:
Variable | What it is |
---|---|
prefix | The prefix you want to use for normal commands |
token | The token of your bot |
permissions | The permissions integer your bot needs when it gets invited |
application_id | The application ID of your bot |
owners | The user ID of all the bot owners |
dc_bot_channel | The channel ID of the dcounter.space bot logs |
bot_reply_channel | The channel ID of the /smr-market command reply channel |
tea_comms_channel | The channel ID of the /talktotea command |
unverified_role_name | Human readable dcounter.space @Unverified group name |
unverified_role_id | The group ID of the dcounter.space @Unverified group |
verified_role_id | The group ID of the dcounter.space verified users group |
bitfinex_ticker | The Shimmer Ticker for the SMR/USD pair tSMRUSD on Bitfinex |
coingecko_coin_id | The Shimmer coin ID for Shimmer in the Coingecko API |
coingecko_exchange_id | The Bitfinex exchange ID for the Coingecko API |
geckoterminal_ticker | The ShimmerEVM Ticker shimmerevm on GeckoTerminal |
shimmer_onchain_deposit_alias | The Shimmer Address Alias where ShimmerEVM tokens are tracked on chain |
To start the bot you simply need to launch, either your terminal (Linux, Mac & Windows), or your Command Prompt ( Windows) .
Before running the bot you will need to install all the requirements with this command:
python -m pip install -r requirements.txt
After that you can start it with
python bot.py
Note You may need to replace
python
withpy
,python3
,python3.11
, etc. depending on what Python versions you have installed on the machine.
This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details