You are browsing as a guest. Sign up (or log in) to start making projects!

Kairos

  • 1 Devlogs
  • 4 Total hours

A discord bot for people wanting to maintain their habits through pings, streaks, and detailed statistics.

Open comments for this post

4h 8m 47s logged

Dev log #1

For the past 2-3 days I got started working on a python discord bot that I named Kairos, meant to be something that helps people (like myself) maintain or track their habits through the use of Discord pings, and streaks as a reward system.

I never actually built a Discord bot before :(, so I didn’t code much of the actual features yet. My first dev log is mostly about spending my time learning new tools/libraries such as discord.py, and SQLite (for storing user data).


Progress so far:

  • I made a new application on the Discord dev portal, configured bot intents and gave it administrator access to a test server
  • I created the initial discord bot boiler plate code, using classes and methods provided by discord.py: setup_hook, on_ready, on_message
  • I created a .env file to securely store and load the bot token
  • I implemented the aiosqlite library, that runs SQL commands to an SQLite database (.db file)
  • System that currently logs in new discord users who run a Kairos bot command for the first time
  • Created a command group for running slash commands related to managing user habits (only has 1 command currently tho)

Things I learnt:

  • Setting up a discord bot, and creating the boiler plate code
  • Usage of asynchronous functions
  • How bot slash commands are created and synced within discord’s command tree
  • First time using SQL, learning database concepts and understanding each of the clauses: INSERT, SELECT, FOREIGN KEY, was a bit confusing but I feel like I’m getting more of a grasp on it
0
0
1

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…