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

Ship #2

A major ship after creation.
There were a lot of changes, especially complicated ones. I learned a lot about how to deal with external services like APIs, webhooks, etc.
I feel like the most challenging part has to be aligning with external services’ standards. What I mean is making MY product compatible with other ones. The AI models sometimes take too long to respond or throw temporary errors, so the bot had to retry quietly and switch to backups. Discord also has a strict 55-character limit on poll answer buttons. Early on, the AI would generate great answers that were slightly too long, causing the post to fail completely until text trimming was put in place. Another tricky part was multi-server isolation, making sure a missing channel or permission error in one server would never delay or crash the daily poll for other servers.

The thing I am most proud of is the bot’s flexibility. The fact that it can work anywhere, pick any channel, handle invites, join any server, catch up if something messes up, and correct itself. It can do all of that itself. It’s very flexible and “agentic” and autonomous, since humans don’t really need to babysit it. Once it’s running, it manages trivia, scoring, weekly recaps, etc.

Lastly, how to actually run it:
All the info is in the README, but to summarize,

  1. Locally: clone the repo, fill in .env.example, and run npm run
  2. Click Try Project; it should take you to a server where you can test it out.
  3. Invite it to your own server!

HAVE FUN AND THANK YOU!

  • 3 devlogs
  • 8h
  • 10.84x multiplier
  • 82 Stardust
Try project → See source code →
Open comments for this post

6h 26m 19s logged

I foolishly didn’t make a devlog in a while becuase I thought that I couldn’t while my project was being reviewed. Sorry.

But now I’ll try to summarize the changes made, and there were a LOT LOT:

From what I recall:

  • Support multiple servers

the bot will automatically join and run in any discord server immediately. (before I needed to manually add the server ID)
Server admins can use “/setpollchannel” to specify where they want the polls to go.
Servers can individually set if they want polls to @everyone or a specific role or none (before it was set to @everyone which was not a good thing to do).

  • More consistent daily polls

Moved to newer free AI models for generating the questions for the polls.
Automatically retry the AI service if it is too slow or has an error. (before it quit fast resulting in lots of errors.)
Auto-cut answers to fit within the <55 character limit for buttons on discord. (avoiding failure)
If there are issues posting a scheduled morning poll to one server, it won’t block it from posting other scheduled polls for other servers.
also the same poll goes to all servers instead of a seperate poll being generated for each one.

  • Command changes

Merged some overlapping commands for a simpler command list.
MAJOR BUG: “/knowledge” command could potentially overwrite/destroy the existing bot settings. Resolved that issue.
Updated /help

  • Other

Automated tests were tweaked to increase performance.
Upgraded project deps

0
0
14
Open comments for this post

49m 50s logged

More README.md edits. And, I tried making testing the product easier/more accessible. Either just watch the demo video, or join the servere in which you can use the bot freely! Both in the project desc.

PLEASE ALLOW MY SHIP, SHIPWRITERSS 🥹🥹

0
0
11
Open comments for this post

16m 1s logged

Turns out my readme SOUNDED AI generated.

I changed up the whole format and structure. Idk if that made it easier or harder to read but now I ship again!

0
0
23
Ship #1

A bot that posts AI polls daily but is wayy cooler than you think.

Core Features

  • Daily AI Polls: Automatically posts fresh AI-related polls in your server every day.
  • AI Summaries: Provides a weekly AI summary every Sunday (customizable scheduling coming soon).
  • Poll Memory: Remembers previously asked polls to prevent repeats.
  • Points & Leaderboard:
    • Awards points to users who answer polls correctly
    • Maintains a dynamic leaderboard for your server
  • Chat with the Bot:
    • Mention the bot or set it to respond without direct pings
    • Can be customized for retroactive message responses

Additional Features

  • Custom Polls: Create your own polls with custom options and durations
  • Anonymous Voting: Option for anonymous poll participation
  • Poll Results: View poll results after voting ends
  • Poll Scheduling: Schedule polls for specific dates and times
  • Role-Restricted Polls: Limit poll participation to specific roles
  • Poll Management:
    • Edit, close, or delete polls as needed
    • Archive past polls for reference
  • User-Friendly Commands: Simple, clear command structure for creating and managing polls
  • Rich Poll Embeds: Visually appealing poll display using Discord embeds
  • Extensible: Open-source and easy to customize/extend for your own needs

For the full list of features and setup instructions, refer to the README.

Try project → See source code →
Open comments for this post

2h 30m 56s logged

Longggg session today.
shipped a lot of cool features tho.

  1. made multi-server management much easy just in case this blows up (fingers crossed)

  2. toggled the AI prompt for generating summary a bit cuz we all hate niche ai outputs

  3. cleaned up docs

  4. improved messages and templates it uses to send discord messages. made it simpler. otherwise, it was all accross the place.

0
0
16
Open comments for this post

56m 55s logged

Code quality matters much more than people realize. This session was all about clearing up the code. Merging duplicate parts, unifying systems, and making it just easier to read and understand overall. Also, TESTS help a lot. Run a suite of tests after every change. Keep adding tests for new changes too!

0
0
78

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…