femcord is a lightweight Discord library designed for creating smaller bots. This repository serves as part of my portfolio and is intended for use with my personal bots.
Python 3.12 or higher is required
$ git clone https://github.com/czubix/femcord.git
$ cd femcord
$ python3 -m pip install -U .
or
$ python3 -m pip install git+https://github.com/czubix/femcord.git
Below are some quick examples to help you get started with femcord. Detailed documentation will be provided later.
import femcord
from femcord import commands
bot = commands.Bot(command_prefix="!", intents=femcord.Intents.all())
@bot.event
async def on_ready():
print("Logged in as " + bot.gateway.bot_user.username)
bot.run("YOUR_BOT_TOKEN")
@bot.command()
async def ping(ctx: commands.Context):
await ctx.reply("Pong!")
@bot.command(aliases=["say"])
async def echo(ctx: commands.Context, *, content: str):
await ctx.reply(content)
@bot.event
async def on_message_create(message: femcord.types.Message):
if message.author.bot:
return
if "uwu" in message.content.lower():
return await message.reply(":3")