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

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.
Mark as answer if it helps you.

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