1
0
Fork
You've already forked sily-bot
0
No description
  • JavaScript 99%
  • Dockerfile 1%
2026年06月14日 22:16:48 +02:00
.gitignore working bot 2024年12月08日 03:49:36 +00:00
app.js create docker config 2026年03月11日 13:00:30 -05:00
command_impls.js implement rare boars 2025年04月14日 17:06:44 -05:00
commands.js fact checking boar now uses advanced ai algorithms 2025年01月17日 12:18:41 -06:00
compose.yaml god is it listening on 3001? 2026年03月11日 14:13:10 -05:00
Dockerfile don't block 2026年03月11日 13:05:17 -05:00
LICENSE add license 2025年07月17日 22:59:13 -05:00
message-scheduler.js Add Buttons; Remove Unschedule Command ( #5 ) 2024年12月11日 21:40:39 -06:00
package-lock.json Bump qs and express 2026年01月01日 22:24:07 -06:00
package.json Bump qs and express 2026年01月01日 22:24:07 -06:00
README.md Update README.md 2026年06月14日 22:16:48 +02:00

Sily Bot

A bot that automates silliness.

How to run

  1. Create a new bot at https://discord.com/developers/applications/
  2. Set your Interactions Endpoint URL here: https://discord.com/developers/applications/<id>/information
  3. Clone the latest version of sily-bot with git clone https://codeberg.org/jjanzen/sily-bot.git
  4. Populate your .env file
  5. Install dependencies with npm install
  6. Register the bot commands with npm run register
  7. Run the bot with npm run start

The .env file is formatted as:

APP_ID=<APPLICATION ID>
DISCORD_TOKEN=<TOKEN>
PUBLIC_KEY=<PUBLIC KEY>
TIMEZONE=<TIMEZONE>
PORT=<PORT> # optional

Note on accessing the bot

This bot requires that there be a publicly accessible interactions endpoint URL. You're on your own for this as the setup entirely depends on your system. I run an Apache webserver that proxies requests for /sily-bot to http://127.0.0.1:3000/ with the following:

<VirtualHost *:443>
# ...
 SSLProxyEngine on
 <Location /sily-bot>
 ProxyPass http://127.0.0.1:3000/
 ProxyPassReverse http://127.0.0.1:3000/
 </Location>
</VirtualHost>

Current Abilities

Command Description
/blep blep.
/catfact Get a fact about cats
/factcheck Commune with the sacred boar at the centre of the world to check a fact
/fomx Get an image of a fox
/help Show a help message
/pet You can pet sily-bot.
/schedule-message <message> <cron> Schedule a message to be sent later. Works like Linux cron jobs in the format second minute hour day month weekday. Put the number (or name of month or weekday) in each spot. If you want it to run every second, minute, etc. instead of once when it reaches the provided number, use a * instead of a number. For instance, to run a job every minute on January 4th, you might use 0 * * 4 January *.