Answers for "discord.py send out brief command"

0

how to limit a command to a role in discord.py

@bot.command()
@commands.has_role('RoleName')
async def command_name():
Posted by: Guest on June-24-2020
0

Discord Announcement bot python

import time
from discord_webhook import DiscordWebhook
from discord_webhook import DiscordEmbed

InfoUser = input("What Should Be The Text in Your 1st Line: ")
InfoPass = input("What Should Be The Text in Your 2st Line:: ")
webhook = DiscordWebhook(url='Your WebHook Url Here')
EveryonePing = DiscordWebhook(url='Your WebHook Url Here', content="@everyone")
embed = DiscordEmbed(title='Announcement', description="@everyone" + "```" + InfoUser + "```" + "```" + "" + InfoPass + "```", color=242424)


webhook.add_embed(embed)
PingingAll = EveryonePing.execute()
response = webhook.execute()

time.sleep(100000)

###### Made By Rigby#9052 on Discord #### 
	 ##### Please Give Credits #####
		   #### Have Fun! ####
Posted by: Guest on November-15-2020

Python Answers by Framework

Browse Popular Code Answers by Language