Created
April 6, 2020 00:08
-
-
Save EZLiang/0c540748ba298b83a6ac1681c800b5c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
client = discord.Client() | |
@client.event | |
async def on_message(msg): | |
if msg.author == client.user: | |
return | |
elif client.user in msg.mentions: | |
await msg.channel.send("_I have been pinged by {}!_".format(msg.author.mention)) | |
def main(): | |
client.run(sys.argv[1]) | |
if __name__ == "__main__": | |
main() | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment