What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-01 21:06:00
how to make it that your discord bot can autorole in the discord.py rewrite
role = "Citizen" # Role to be autoroled when user joins @client.event async def on_member_join(member): rank = discord.utils.get(member.guild.roles, name=role) #Bot get guild(server) roles await member.add_roles(rank) print(f"... Add solution -
Python 2022-01-30 23:22:56
what are discord bots
#go to -- https://python.org #Download and install python #go to CMD and install -- pip install discord import discord from discord.ext import commands Token_1 = input("put your bot token here :") Prefix_1 = input("put the prefix for your... Add solution -
Python 2021-11-14 14:05:11
discord bot python on reaction
@client.event async def on_reaction_add(reaction, user): # Steals your reaction by removing the original and adding it's own if not user.bot and reaction.message.content == "try me": await reaction.remove(user) await reac... Add solution -
Python 2021-11-09 19:36:17
discord.py basic command
#If you havent already install discord.py using pip install discord.py #Then import discord #Then Import commands import discord from discord.ext import commands #Create your bot instinct #With the bot Prefix set to ! #You can change it to your choice cli... Add solution -
Python 2021-10-28 04:13:16
how to make a discord bot send a message python
import discord from discord.ext import commands client = commands.Bot(command_prefix='!!') # This sets the prefix change if you want TOKEN = 'insert token here' # tutorial at the bottom @client.event def on_ready(): print('Ready. Logged in as: {0.user... Add solution