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))
Metadata
Release files for DiscordRandomStuff 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| DiscordRandomStuff-0.0.1.tar.gz | 2.4 kB | Without provenance | Details for DiscordRandomStuff-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| DiscordRandomStuff-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for DiscordRandomStuff-0.0.1-py3-none-any.whl |
Total release size: 5.3 kB
Release files / DiscordRandomStuff-0.0.1.tar.gz
| Download URL | DiscordRandomStuff-0.0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
202fe3ce4ac21e3429bb27260b08efd84733e8a5ea4aa171abcc9016f83957e9
|
|
BLAKE2b-256 checksum How to use checksums |
24474da940b23eb318b9c677e870fdca2ef0ae6d0d7ba0f4d4b346c4bae59688
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / DiscordRandomStuff-0.0.1-py3-none-any.whl
| Download URL | DiscordRandomStuff-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2017e7946c31e67d9a1b850785b112b228e10d011d04286c651246aa3d94d26f
|
|
BLAKE2b-256 checksum How to use checksums |
cbbbcc126de0e38931ac3ba970d935bfcfead917cff15e975af302732ea9b646
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for DiscordRandomStuff 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.