Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

This is a joke project I just wanted to see how weird I could get with command declaration syntax for lightbulb

License

Notifications You must be signed in to change notification settings

tandemdude/lightbulb-ext-wtf

Repository files navigation

Lightbulb WTF

This is a joke project (but working somehow).

I just wanted to mess around to see how much I could mess with lightbulb command declaration syntax.

Usage

Commands are declared like generics using square brackets ([]) as the construction method.

A basic command:

import lightbulb
from lightbulb.ext.wtf import *

bot = lightbulb.BotApp(...)

async def foo_callback(ctx):
    await ctx.respond("Bar")


cmd = Command[
    Implements[lightbulb.PrefixCommand],
    Name["foo"],
    Description["test command"],
    Executes[foo_callback]
]

bot.command(cmd)
bot.run()

About

This is a joke project I just wanted to see how weird I could get with command declaration syntax for lightbulb

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages