![]() ![]() Right-clicking the LightBulb icon in your system tray and selecting "Configure" displays some useful options and tools. Install the program and it goes to work automatically, detecting your location, figuring out the sunrise and sunset time and updating your display colour temperature accordingly. You add any features accessible through the public API.LightBulb is a f.lux-like application which smoothly adjusts screen gamma to make colours seem warmer at night, reducing eye strain and making your PC more comfortable to use. Please try to update tests as appropriate and ensure that documentation is updated if For major changes, please open an issue first to discuss what you would like to change. Please also open an issue for any new features you would like to see added. You should open an issue with details of the problem and how to reproduce if possible. If you find any bugs, issues, or unexpected behaviour while using the library, 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. Context ) -> None : # Send a message to the channel the command was used in await ctx. The callback should take a single argument which will be # an instance of a subclass of when passed in async def ping ( ctx : lightbulb. PrefixCommand ) # Define the command's callback. command ( "ping", "checks the bot is alive" ) # Define the command type(s) that this command implements. command # Use the command decorator to convert the function into a command. BotApp ( token = "your_token_here", prefix = "your_prefix_here" ) # Register the command to the bot. Usage # Import the command handler import lightbulb # Instantiate a Bot instance bot = lightbulb. Use the package manager pip to install Lightbulb. This library aims to make it simple for you to make your own Discord bots and provideĪll the utilities and functions you need to help make this job easier. Lightbulb is designed to be an easy to use command handler library that integrates with theĭiscord API wrapper library for Python, Hikari. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |