minor bug fix & misc

This commit is contained in:
marzavec
2025-03-25 21:10:48 -07:00
parent c0bca44f0f
commit 85a6595ebe
4 changed files with 9 additions and 1 deletions
+2
View File
@@ -93,6 +93,8 @@ export async function run({
}
}
console.log(`[${socket.trip}]${socket.nick} UNCLAIMED ?${socket.channel}`);
return true;
}
+4
View File
@@ -180,6 +180,10 @@ export function commandCheckIn({ server, socket, payload }) {
return false;
}
if (payload.text.startsWith('/shrug')) {
payload.text = payload.text.replace('/shrug', String.fromCharCode(175)+String.fromCharCode(92)+String.fromCharCode(92)+String.fromCharCode(92)+String.fromCharCode(95)+String.fromCharCode(40)+String.fromCharCode(12484)+String.fromCharCode(41)+String.fromCharCode(92)+String.fromCharCode(95)+String.fromCharCode(47)+String.fromCharCode(175));
}
if (payload.text.startsWith('/myhash')) {
server.reply({
cmd: 'info', // @todo Add numeric info code as `id`
+1
View File
@@ -31,6 +31,7 @@ export async function run({ server, socket, payload }) {
server.broadcast({
cmd: 'onlineRemove',
nick: socket.nick,
userid: socket.userid,
}, { channel: socket.channel });
}
}
+2 -1
View File
@@ -174,12 +174,13 @@ export const SystemMOTDs = [
'Protip: You can easily change your name with a command: /nick bob',
'Enjoying hack.chat? Support us: https://patreon.com/marzavec',
'We have a Twitter for some reason: https://x.com/HackDotChat',
'Protip: Use a password or add a "#" followed by a password to get a trip code',
'Protip: Use a password or add a "#" followed by a secret phrase to get a trip code',
'Protip: You can claim an unclaimed channel by using /claimchannel',
'Protip: You can send emotes like: /me does a thing',
'Protip: The owner of a channel can create moderators: /setlevel <trip> channelModerator',
'Protip: A moderator can kick people from the room: /kick <name>',
'Protip: Use /getchannels anytime to see a list of public channels',
'Protip: You can do ==/help== or ==/help command== ',
];
/**