Skip to content
Desu403Public

About

Microcord is an minimal Discord library with slash commands, made for simple bots

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MicroCord

Microcord is an ultra fast minimal Discord library with slash commands and message events

Code Example

import microcord

from microcord.events import ready, message_create

client = microcord.Client("YOUR TOKEN HERE")

@client.event(ready)
def on_ready():
    print(f"[ INFO ] Logged in as {client.user.username}#{client.user.discriminator}")

@client.event(message_create)
def on_message(msg):
    print(f"[ {msg.author.username} ] {msg.content}")

@client.command(name="ping", description="Pings the bot", guild_id=int(GUILD ID HERE))
def ping_command(msg):
    print(f"[ {msg.author.username} ] /ping")
    embed = microcord.Embed("Pong!", "This bot is running", 0xfafafa)
    msg.reply(embed=embed)

client.run(intents=3243773)

About

Microcord is an minimal Discord library with slash commands, made for simple bots

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages