This library is a powerful tool for creating custom bots for your Discord community
Welcome to my Discord bot creation library using API 10!
This library is a powerful tool for creating custom bots for your Discord community. API 10 is one of the older versions of the Discord API and is still used by many developers to create bots. With this library, you can create and customize bots with ease and efficiency.
The library is written in a modern and easy-to-learn programming language, allowing anyone with basic programming knowledge to create Discord bots. Additionally, the documentation is clear and comprehensive, providing helpful and detailed examples to help you get started quickly.
Some of the features of this library include:
Custom commands: create your own custom commands to perform specific actions on Discord. API integration: use the Discord API to fetch information about users, channels, and servers. Event management: manage events such as when a user joins a voice channel or sends a message on the server. Automated messages: create automated messages for your users at regular intervals or in response to certain events. This library is an excellent and reliable choice for anyone looking to create bots for Discord using API 10. With clear documentation and helpful examples, you can create custom bots to meet the unique needs of your Discord community.
Please note that this library is currently under development and may be subject to changes and updates. We appreciate your patience and feedback as we work to improve and enhance its features and functionality.
- Modern Pythonic API using
async
andawait
. - Proper rate limit handling.
Python 3.9 or higher is required
To install the library you can just run the following command:
# Linux/macOS
python3 -m pip install git+https://github.com/BosonsHiggs/discord.bot
# Windows
py -3 -m pip install git+https://github.com/BosonsHiggs/discord.bot
To install the development version, do the following:
$ git clone https://github.com/BosonsHiggs/discord.bot
$ cd discord.bot
import os
from discordbot.bot import ClientApp
TOKEN = os.environ.get('DISCORD_BOSONS_TESTS')
CLIENT_ID = CLIENT_ID
GUILD_ID = GUILD_ID
bot = ClientApp(TOKEN, CLIENT_ID)
@bot.event('READY')
async def on_ready(bot):
print("Bot online!")
await bot.sync_with_guild(GUILD_ID)
@bot.slash_command(name="hello", description="Send hello!")
async def hello(ctx, name:str):
await ctx.defer(ephemeral=False)
await ctx.send(content=f"Hello to discord.bot library!")
if __name__ == "__main__":
bot.run()
You can find more examples in the examples directory.
- Official Discord Server https://discord.gg/Tc8zB8pnhp