Last active
September 6, 2021 08:49
-
-
Save spinfish/8e4a44a2d574812ad6525c558aa71b77 to your computer and use it in GitHub Desktop.
Very epic discord bot that sends "Hello !" when you type "!hi"
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
AsyncioModule = __import__( | |
'asyncio'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
globals.__call__(), locals.__call__(), | |
[], | |
0 | |
) | |
BuiltInStuffModule = __import__( | |
'builtins'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
globals.__call__(), locals.__call__(), | |
[], | |
0 | |
) | |
CommandsExt = __import__( | |
'discord.ext'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
globals.__call__(), locals.__call__(), | |
['commands'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))]], | |
0 | |
) | |
globals.__call__()[ | |
'TOKENOBVIOUSLYDUH'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
] = 'ur_bots_token_duh' | |
VeryCoolDiscordBot = getattr( | |
CommandsExt.__dict__.__getitem__( | |
'commands'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
), | |
'Bot'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
None.__new__(type(None)) | |
).__call__( | |
**{ | |
'command_prefix'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))]: | |
'!'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
} | |
) | |
async def hi(VeryLongContextObjectBecauseWhyNot): | |
globals.__call__()["letters"[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__getattribute__("__str__").__call__()] = BuiltInStuffModule.list(BuiltInStuffModule.list()) | |
for CamelCaseIsVeryCoolAndPythonic in (a for a in | |
( | |
'\U00000048', '\U00000065', '\U0000006c', "\U0000006c", '\U0000006f', '\U00000020', '\U00000021') | |
): | |
globals.__call__().get('letters'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__getattribute__("__str__").__call__()).append(CamelCaseIsVeryCoolAndPythonic) | |
globals.__call__()['ContextMessage'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
] = getattr(VeryLongContextObjectBecauseWhyNot, 'message'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__getattribute__("__str__").__call__(), None.__new__(type(None))) | |
globals.__call__()['ContextChannel'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
] = getattr(globals.__call__().get('ContextMessage'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
], None.__new__(type(None))), 'channel'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__getattribute__("__str__").__call__(), None.__new__(type(None))) | |
globals.__call__()['ContextGuild'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
] = getattr(globals.__call__().get( | |
'ContextChannel'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__str__.__call__(), None.__new__(type(None))), | |
'guild'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__getattribute__("__str__").__call__(), None.__new__(type(None))) | |
globals.__call__()['FetchAllTheChannelsYes'] = await (globals.__call__().get( | |
"ContextGuild"[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__getattribute__("__str__").__call__(), None.__new__(type(None)) | |
) | |
).__getattribute__('fetch_channels').__call__() | |
globals.__call__()["HahaYesVeryLongVariableNamesAreExtremelyCool"[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
.__getattribute__("__str__").__call__()] = globals.__call__().get( | |
'FetchAllTheChannelsYes'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
].__getattribute__('__str__').__call__(), None.__new__(type(None))) | |
for WhyNotMakeThisASuperLongVarTooHm in globals.__call__().__getitem__( | |
BuiltInStuffModule.str( | |
'HahaYesVeryLongVariableNamesAreExtremelyCool' | |
).__getattribute__("__str__").__call__()[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
): | |
if WhyNotMakeThisASuperLongVarTooHm != getattr( | |
getattr( | |
VeryLongContextObjectBecauseWhyNot, | |
'message'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
], | |
None.__new__(type(None)) | |
), | |
'channel'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
None.__new__(type(None)) | |
): | |
continue | |
elif WhyNotMakeThisASuperLongVarTooHm == getattr( | |
getattr( | |
VeryLongContextObjectBecauseWhyNot, | |
'message'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
], | |
None.__new__(type(None)) | |
), | |
'channel'[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
None.__new__(type(None)) | |
): | |
break | |
else: | |
pass | |
globals.__call__()['PleaseStopReadingThisPleaseForTheLoveOfGod'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
] = BuiltInStuffModule.str().__getattribute__("__str__").__call__() | |
for ThisIsNotALetterAndYouAreNotReal in globals.__call__().get('letters', None.__new__(type(None))): | |
globals.__call__()['PleaseStopReadingThisPleaseForTheLoveOfGod'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
] += str(str(str(str(ThisIsNotALetterAndYouAreNotReal)))) | |
globals.__call__()['EpicCoolChannel'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
] = globals.__call__().get( | |
'ContextGuild', None.__new__(type(None)) | |
).get_channel(BuiltInStuffModule.int( | |
getattr( | |
WhyNotMakeThisASuperLongVarTooHm, "id", None.__new__(type(None)) | |
).__str__.__call__() | |
) | |
) | |
if globals.__call__()['EpicCoolChannel'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
].id != getattr( | |
globals.__call__().get( | |
'ContextChannel', None.__new__(type(None)) | |
), | |
"id"[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
None.__new__(type(None)) | |
): | |
pass | |
elif globals.__call__()['EpicCoolChannel'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
].id == getattr( | |
globals.__call__().get( | |
'ContextChannel', None.__new__(type(None)) | |
), | |
"id"[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))], | |
None.__new__(type(None)) | |
): | |
await WhyNotMakeThisASuperLongVarTooHm.send( | |
BuiltInStuffModule.str().__str__.__call__().join( | |
[WahooYesIAmGoingMad.__str__.__call__() for WahooYesIAmGoingMad in | |
globals.__call__().__getitem__( | |
BuiltInStuffModule.str( | |
'PleaseStopReadingThisPleaseForTheLoveOfGod' | |
).__str__.__call__()[ | |
slice( | |
None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)) | |
) | |
] | |
) | |
] | |
) | |
) | |
else: | |
pass | |
getattr( | |
VeryCoolDiscordBot, | |
'add_command'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
], | |
None.__new__(type(None)) | |
).__call__(getattr( | |
CommandsExt.__dict__.__getitem__('commands'), | |
'Command'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
], | |
None.__new__(type(None)) | |
)(globals.__call__().__getitem__( | |
BuiltInStuffModule.str("hi".__str__.__call__()) | |
) | |
) | |
) | |
getattr(VeryCoolDiscordBot, 'run'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
], None.__new__(type(None))).__call__( | |
globals.__call__().get( | |
'TOKENOBVIOUSLYDUH'[ | |
slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None))) | |
], | |
None.__new__(type(None)) | |
)[slice(None.__new__(type(None)), None.__new__(type(None)), None.__new__(type(None)))] | |
) |
I hate everything about this, which is why I love everything about this.
thanks
This is beautiful
This is beautiful
:goldenbless:
This is a work of art.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I hate everything about this, which is why I love everything about this.