Package to create discord bots its easy!
Project description
About
Module to create discord bots its easy!
#Example
from discorebots import setupBot
bot = setupBot(
prefix=".", #provide your bot prefix
intents=True, #discord intents (if True pls enable intents in discordapp.com/developers/applications in your application bot)
sharding=True, #if you want sharding guilds
shardsAmount=2 #shards count
)
bot.onWebsocketResponse("Bot is ready to use!") #log ready if you want set status: bot.onWebsocketResponse("ready", "type (dnd/idle/online)", "status (watch/stream/listen/game)", "status text")
bot.onClientMessage() #acess bot messages
bot.addCommand(
name = "ping",
code = "Pong! $pingms" #if you want change prefix in command add: prefix="new prefix"
)
bot.addCommand(
name = "uptime",
code = "Uptime: $uptime"
)
bot.start("token")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discorebots-0.0.70.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for discorebots-0.0.70-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39700294a07e069534895bbdd6209501d7c2f65992ffec4f799ac3dc536150a4 |
|
MD5 | 0be45c5b876b9cb10ac9809ba8b232c7 |
|
BLAKE2b-256 | f67c6a2301f2d63457e6ad280a6660a06be0053c6cf373e8d9c8fa2e0d961b63 |