It has random thing, it like a start up for you discord bot
Project description
This is discordRandomStuff it can be a startup for you discord bot or a fun thing for it.
Welcome example
Not in cogs
from discordRandomStuff.welcome import Welcome
from discord.ext import commands
prefix = "t!"
bot = commands.Bot(command_prefix=prefix)
@bot.event
async def on_member_join(self, member):
Welcome(channel=735826080153337898) #Replace those numbers a channel id
Welcome.start() #This will start it
print("DRS welcome module is loaded") #If this shows up in your conosle logs, that means it is loaded
In cogs
from discordRandomStuff.welcome import Welcome
from discord.ext import commands
class Welcome(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener() # Event module
async def on_member_join(self, member): # defining it
Welcome(channel=735826080153337898) #Replace those numbers a channel id
Welcome.start() #This will start it
print("DRS welcome module is loaded") #If this shows up in your conosle logs, that means it is loaded
def setup(bot):
bot.add_cog(Welcome(bot))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file DiscordRandomStuff-0.0.1.tar.gz.
File metadata
- Download URL: DiscordRandomStuff-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202fe3ce4ac21e3429bb27260b08efd84733e8a5ea4aa171abcc9016f83957e9
|
|
| MD5 |
2749ba68a1a85677672420f8fce5780e
|
|
| BLAKE2b-256 |
24474da940b23eb318b9c677e870fdca2ef0ae6d0d7ba0f4d4b346c4bae59688
|
File details
Details for the file DiscordRandomStuff-0.0.1-py3-none-any.whl.
File metadata
- Download URL: DiscordRandomStuff-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2017e7946c31e67d9a1b850785b112b228e10d011d04286c651246aa3d94d26f
|
|
| MD5 |
c1fbe32a428d258e73227026f35d0051
|
|
| BLAKE2b-256 |
cbbbcc126de0e38931ac3ba970d935bfcfead917cff15e975af302732ea9b646
|