Created
July 6, 2022 06:28
-
-
Save UnrealFar/b924665c59b073e88e0acaa00d4bb93a to your computer and use it in GitHub Desktop.
Create a one-liner bot with basic commands in Discord.py
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
os=__import__('os'); discord =__import__('discord'); asy=__import__('asyncio', globals(), locals(), ['coroutine']).coroutine; bot=__import__('discord.ext', globals(), locals(), ['commands']).commands.Bot(command_prefix = '?'); bot.on_ready = asy((lambda: print("Ready!"))); bot.command(name="ping")(asy(lambda ctx: ctx.send(f"Pong! {bot.latency}"))); bot.run(os.environ['Token'])] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment