2020-09-06 12:33:49 +02:00
2020-08-30 17:06:06 +02:00
2020-09-06 12:33:49 +02:00
2020-08-30 15:01:26 +02:00
2020-08-30 17:14:37 +02:00
2020-08-30 17:19:11 +02:00
2020-07-20 23:26:42 +02:00
2020-08-30 15:01:26 +02:00
2020-08-30 17:19:11 +02:00

Total alerts Language grade: Python Coverage Status

Miniscord

A minimalist discord bot API

from miniscord import Bot
import discord


async def hello(client: discord.client, message: discord.Message, *args: str):
    await message.channel.send("Hello!")


bot = Bot(  
    "test-app",     # name
    "0.1-alpha",    # version
    alias="|"       # respond to '|command' messages
)  
bot.register_command(
    "hello",                    # command text (regex) 
    hello,                      # command function
    "hello: says 'Hello!'",     # short help
    f"```\n"                    # long help
    f"* |help\n"
    f"\tSays 'Hello!'.\n"
    f"```"
)
bot.start()
# this bot respond to "|help", "|info" and "|hello"

⚠ Disclaimer: I intend to use this project personally, I'm open to ideas but I don't care if it doesn't work for you. Same for the name, feel free to use it, I'm not registering it on PyPI

Features

TODO

Installation

To install this package on your project, use :

pip install git+git://github.com/Klemek/miniscord.git

Documentation

TODO

Versions

  • v0.0.1 (WIP) : initial version

TODO

  • Finish README.md
  • Write more tests
  • Add comments to code
  • Separate branches
  • Working CI
  • Fix bugs
S
Description
A minimalist discord bot API 🤖
Readme GPL-3.0 139 KiB
Languages
Python 100%