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.71.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for discorebots-0.0.71-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b618e8e9c0913e71acaf2b37b65309218b614bb5334260592ce72fe2780db6af |
|
MD5 | 55101033582554ecce74c5056d24b44d |
|
BLAKE2b-256 | 2e2603518447cc6a14f326e305ae75a528a3e9d5659faddae957725ec4dca57e |