Giter VIP home page Giter VIP logo

discord.bot's Introduction

discord.bot

This library is a powerful tool for creating custom bots for your Discord community

Welcome to my Discord bot creation library using API 10!

This library is a powerful tool for creating custom bots for your Discord community. API 10 is one of the older versions of the Discord API and is still used by many developers to create bots. With this library, you can create and customize bots with ease and efficiency.

The library is written in a modern and easy-to-learn programming language, allowing anyone with basic programming knowledge to create Discord bots. Additionally, the documentation is clear and comprehensive, providing helpful and detailed examples to help you get started quickly.

Some of the features of this library include:

Custom commands: create your own custom commands to perform specific actions on Discord. API integration: use the Discord API to fetch information about users, channels, and servers. Event management: manage events such as when a user joins a voice channel or sends a message on the server. Automated messages: create automated messages for your users at regular intervals or in response to certain events. This library is an excellent and reliable choice for anyone looking to create bots for Discord using API 10. With clear documentation and helpful examples, you can create custom bots to meet the unique needs of your Discord community.

Please note that this library is currently under development and may be subject to changes and updates. We appreciate your patience and feedback as we work to improve and enhance its features and functionality.

Key Features

  • Modern Pythonic API using async and await.
  • Proper rate limit handling.

Installing

Python 3.9 or higher is required

To install the library you can just run the following command:

# Linux/macOS
python3 -m pip install git+https://github.com/BosonsHiggs/discord.bot

# Windows
py -3 -m pip install git+https://github.com/BosonsHiggs/discord.bot

To install the development version, do the following:

$ git clone https://github.com/BosonsHiggs/discord.bot
$ cd discord.bot

Quick Example

import os
from discordbot.bot import ClientApp

TOKEN = os.environ.get('DISCORD_BOSONS_TESTS')
CLIENT_ID = CLIENT_ID
GUILD_ID = GUILD_ID

bot = ClientApp(TOKEN, CLIENT_ID)

@bot.event('READY')
async def on_ready(bot):
    print("Bot online!")
    await bot.sync_with_guild(GUILD_ID)

@bot.slash_command(name="hello", description="Send hello!")
async def hello(ctx, name:str):
    await ctx.defer(ephemeral=False)
    await ctx.send(content=f"Hello to discord.bot library!")

if __name__ == "__main__":
    bot.run()

You can find more examples in the examples directory.

Links

discord.bot's People

Contributors

iagolirapasssos avatar fibertero avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.