A very strange method of declaring commands with hikari-lightbulb
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lightbulb_ext_wtf-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd0aff3d4ff4cb8ac4ca04b0ff45d21b5a954ac984b8416351ac6ef212b2f0aa |
|
MD5 | ffdd16046dc235dbad6f5ffaa9c6d354 |
|
BLAKE2b-256 | 79fc78be30359a4fc42922204ca747c0834679f3740570098ed07f66db579cd4 |