Learn to Code via Tutorials on Repl.it!

← Back to all posts
How do I make this bot?
corbob (0)

I am trying to make a discord bot where whenever someone pings @everyone in discord then it sends a custom video, this is with python. Please comment any code down below

also sorry if this is the wrong category

Comments
hotnewtop
Alvinzzzzz (1)

Since @everyone is displayed just like a normal text so use discord.py and add an on_message event and whenever people said @everyone send them the video u wanted to send here is an example.
@corbob
Mark as answer if it helps you.

import discord
client = discord.Client()
@client.event
async def on_message(message):
 if message == "@everyone":
  await message.channel.send("ur video link")
client.run("TOKEN")