remove ping command, add backshot command, add nice font to chatwidget, add first time chatting warning

This commit is contained in:
2025-07-23 02:53:45 +01:00
parent cc3176ea2f
commit 7489c4f52d
9 changed files with 31 additions and 13 deletions

10
src/commands/backshot.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Command, sendMessage } from ".";
import { User } from "../user";
import { redis } from "bun";
export default new Command('backshot', ['backshot'], 'chatter', async (msg, user) => {
const targets = await redis.keys(`user:*:haschatted`);
const selection = targets[Math.floor(Math.random() * targets.length)]!;
const target = await User.initUserId(selection.slice(5, -11));
await sendMessage(`${user.displayName} backshotted ${target?.displayName}`, msg.messageId);
});

View File

@@ -1,6 +0,0 @@
import { Command, sendMessage } from ".";
// This command is purely for testing
export default new Command('ping', ['ping'], 'chatter', async msg => {
await sendMessage('pong!', msg.messageId);
});