All Projects → tandemdude → hikari-lightbulb

tandemdude / hikari-lightbulb

Licence: GPL-3.0 license
The official unofficial command handler for the Python discord API wrapper library, Hikari.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to hikari-lightbulb

DiscordBot-Template
A boilerplate / template for discord.js bots with 100% coverage of Discord API, command handler, error handler based on https://discordjs.guide/
Stars: ✭ 129 (-15.13%)
Mutual labels:  discord-bot, discord-api, command-handler
nyxx
Wrapper around Discord API for Dart
Stars: ✭ 217 (+42.76%)
Mutual labels:  discord-bot, discord-api, api-wrapper
discord.bat
🗑️ the BEST discord lib
Stars: ✭ 38 (-75%)
Mutual labels:  discord-api, api-wrapper
FlareBot
A nice Discord bot made with JDA, FlareBot is a music and server administration bot along with a few other cool features
Stars: ✭ 39 (-74.34%)
Mutual labels:  discord-bot, discord-api
discord-message-handler
Message and command handler for discord.js bots and applications
Stars: ✭ 19 (-87.5%)
Mutual labels:  discord-api, command-handler
wumpy
Discord API Wrapper - Easy enough for Wumpus, and fast enough for Clyde!
Stars: ✭ 25 (-83.55%)
Mutual labels:  discord-bot, discord-api
discord.js-modules
Modularisation of discord.js (WIP)
Stars: ✭ 210 (+38.16%)
Mutual labels:  discord-bot, discord-api
Discord-BOT-Dashboard
This version is outdated, please check out Discord BOT Dashboard v2
Stars: ✭ 32 (-78.95%)
Mutual labels:  discord-bot, discord-api
discord.d.ts
Typings for the Discord gateway.
Stars: ✭ 24 (-84.21%)
Mutual labels:  discord-bot, discord-api
ksoftapi.py
Official API Wrapper for KSoft.Si API
Stars: ✭ 31 (-79.61%)
Mutual labels:  discord-bot, api-wrapper
Pokedex
Pokedex is a robust Discord bot that mimics the iconic Pokedex from the Pokemon games and show. It's loaded with features to help players of all skill levels to learn and better enjoy Pokemon! The goal of Pokedex is to provide users with as much data about the Pokemon games as they desire conveniently and with minimal effort.
Stars: ✭ 18 (-88.16%)
Mutual labels:  discord-bot, discord-api
Commando
[DEPRECATED] ⚫ Commando Discord bot built on discord.js-commando.
Stars: ✭ 78 (-48.68%)
Mutual labels:  discord-bot, discord-api
DiscordCoreAPI
A bot library for Discord, written in C++, and featuring explicit multithreading through the usage of custom, asynchronous C++ CoRoutines.
Stars: ✭ 104 (-31.58%)
Mutual labels:  discord-bot, discord-api
LenoxBot
🖥️ LenoxBot is a Discord bot that offers many cool new features to your Discord server!
Stars: ✭ 218 (+43.42%)
Mutual labels:  discord-bot, discord-api
aero-bot
A general purpose discord bot that also functions as the flagship example bot using AeroClient
Stars: ✭ 11 (-92.76%)
Mutual labels:  discord-bot, command-handler
discljord
A Clojure wrapper library for the Discord API, with full API coverage (except voice, for now), and high scalability
Stars: ✭ 179 (+17.76%)
Mutual labels:  discord-bot, discord-api
discord-voice
⏲️ A complete framework to facilitate the tracking of user voice time using discord.js
Stars: ✭ 33 (-78.29%)
Mutual labels:  discord-bot, discord-api
discordcaptcha
Verification bot for Discord
Stars: ✭ 142 (-6.58%)
Mutual labels:  discord-bot, discord-api
suggestions-bot
A Discord bot designed to build better communities by encouraging a positive and constructive relationship between community and staff.
Stars: ✭ 22 (-85.53%)
Mutual labels:  discord-bot, discord-api
auto
A code scanner Discord bot.
Stars: ✭ 15 (-90.13%)
Mutual labels:  discord-bot, discord-api

PyPI

Lightbulb

Lightbulb is designed to be an easy to use command handler library that integrates with the Discord API wrapper library for Python, Hikari.

This library aims to make it simple for you to make your own Discord bots and provide all the utilities and functions you need to help make this job easier.

Installation

Use the package manager pip to install Lightbulb.

pip install hikari-lightbulb

Usage

# Import the command handler
import lightbulb

# Instantiate a Bot instance
bot = lightbulb.BotApp(token="your_token_here", prefix="your_prefix_here")

# Register the command to the bot
@bot.command
# Use the command decorator to convert the function into a command
@lightbulb.command("ping", "checks the bot is alive")
# Define the command type(s) that this command implements
@lightbulb.implements(lightbulb.PrefixCommand)
# Define the command's callback. The callback should take a single argument which will be
# an instance of a subclass of lightbulb.context.Context when passed in
async def ping(ctx: lightbulb.Context) -> None:
    # Send a message to the channel the command was used in
    await ctx.respond("Pong!")

# Run the bot
# Note that this is blocking meaning no code after this line will run
# until the bot is shut off
bot.run()

Issues

If you find any bugs, issues, or unexpected behaviour while using the library, you should open an issue with details of the problem and how to reproduce if possible. Please also open an issue for any new features you would like to see added.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please try to update tests as appropriate and ensure that documentation is updated if you add any features accessible through the public API.

If you use this library and like it, feel free to sign up to GitHub and star the project, it is greatly appreciated and lets me know that I'm going in the right direction!

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].