Skip to content

Instantly share code, notes, and snippets.

View UnrealFar's full-sized avatar
💭
oi oi, homelander took me son

Farhan UnrealFar

💭
oi oi, homelander took me son
View GitHub Profile
@UnrealFar
UnrealFar / onelinerbot.py
Created July 6, 2022 06:28
Create a one-liner bot with basic commands in Discord.py
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'])]
@UnrealFar
UnrealFar / oddoreven.py
Last active June 30, 2024 11:51
A simple console odd or even game in Python
from typing import Literal
import random
CONVERSIONS = {
"one": 1,
"two": 2,
"three": 3,
"four": 4,
"five": 5,
"six": 6,