Created
August 7, 2019 12:25
-
-
Save wilfreddv/51e50eaa77dd6f9a4d8e44a8b5767865 to your computer and use it in GitHub Desktop.
Discord bot the says 'pong' when you say 'ping'
This file contains hidden or 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
(lambda on_msg=__import__("asyncio").coroutine(lambda msg: msg.channel.send(f"pong") if not msg.author.bot and msg.content == "ping" else None),bot=__import__("discord.ext.commands").ext.commands.Bot(command_prefix=""):exec("on_msg.__name__='on_message'") or (bot.event(on_msg) and bot.run( TOKEN )))() |
Certified Figo"!" Well Done.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Certified Figo"!" Well Done.