minor bug fix & misc
This commit is contained in:
@@ -93,6 +93,8 @@ export async function run({
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`[${socket.trip}]${socket.nick} UNCLAIMED ?${socket.channel}`);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -31,6 +31,7 @@ export async function run({ server, socket, payload }) {
|
||||
server.broadcast({
|
||||
cmd: 'onlineRemove',
|
||||
nick: socket.nick,
|
||||
userid: socket.userid,
|
||||
}, { channel: socket.channel });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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== ',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user