Skip to content

Commit

Permalink
Change references of & to ~
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Oct 1, 2024
1 parent 00f3bdc commit e82c5fa
Show file tree
Hide file tree
Showing 56 changed files with 714 additions and 714 deletions.
4 changes: 2 additions & 2 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ If you truly want to host the client yourself, there is [a repository for the Po
Setting up an Administrator account
------------------------------------------------------------------------

Once your server is up, you probably want to make yourself an Administrator (&) on it.
Once your server is up, you probably want to make yourself an Administrator (~) on it.

### config/usergroups.csv

To become an Administrator, create a file named `config/usergroups.csv` containing

USER,&
USER,~

Replace `USER` with the username that you would like to become an Administrator. Do not put a space between the comma and the ampersand.

Expand Down
102 changes: 51 additions & 51 deletions server/chat-commands/admin.ts

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions server/chat-commands/avatars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const Avatars = new class {
const entry = customAvatars[user.id];
if (entry?.notNotified) {
user.send(
`|pm|&|${user.getIdentity()}|/raw ` +
`|pm|~|${user.getIdentity()}|/raw ` +
Chat.html`${<>
<p>
You have a new custom avatar!
Expand Down Expand Up @@ -786,7 +786,7 @@ export const commands: Chat.ChatCommands = {
avatarshelp: [
`/avatars - Explains how to change avatars.`,
`/avatars [username] - Shows custom avatars available to a user.`,
`!avatars - Show everyone that information. Requires: + % @ # &`,
`!avatars - Show everyone that information. Requires: + % @ # ~`,
],

addavatar() {
Expand Down Expand Up @@ -940,7 +940,7 @@ export const commands: Chat.ChatCommands = {
Avatars.tryNotify(Users.get(to));
},
moveavatarshelp: [
`/moveavatars [from user], [to user] - Move all of the custom avatars from [from user] to [to user]. Requires: &`,
`/moveavatars [from user], [to user] - Move all of the custom avatars from [from user] to [to user]. Requires: ~`,
],

async masspavatar(target, room, user) {
Expand Down
26 changes: 13 additions & 13 deletions server/chat-commands/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ export const commands: Chat.ChatCommands = {
},
blockinviteshelp: [
`/blockinvites [rank] - Allows only users with the given [rank] to invite you to rooms.`,
`Valid settings: autoconfirmed, trusted, unlocked, +, %, @, &.`,
`Valid settings: autoconfirmed, trusted, unlocked, +, %, @, ~.`,
`/unblockinvites - Allows anyone to invite you to rooms.`,
],

Expand Down Expand Up @@ -639,7 +639,7 @@ export const commands: Chat.ChatCommands = {
},
clearstatushelp: [
`/clearstatus - Clears your status message.`,
`/clearstatus user, reason - Clears another person's status message. Requires: % @ &`,
`/clearstatus user, reason - Clears another person's status message. Requires: % @ ~`,
],

unaway: 'back',
Expand Down Expand Up @@ -862,7 +862,7 @@ export const commands: Chat.ChatCommands = {
this.sendReply(this.tr`Battle input log re-requested.`);
}
},
exportinputloghelp: [`/exportinputlog - Asks players in a battle for permission to export an inputlog. Requires: &`],
exportinputloghelp: [`/exportinputlog - Asks players in a battle for permission to export an inputlog. Requires: ~`],

importinputlog(target, room, user, connection) {
this.checkCan('importinputlog');
Expand All @@ -887,7 +887,7 @@ export const commands: Chat.ChatCommands = {
battleRoom.battle!.sendInviteForm(user);
}, 500);
},
importinputloghelp: [`/importinputlog [inputlog] - Starts a battle with a given inputlog. Requires: + % @ &`],
importinputloghelp: [`/importinputlog [inputlog] - Starts a battle with a given inputlog. Requires: + % @ ~`],

showteam: 'showset',
async showset(target, room, user, connection, cmd) {
Expand Down Expand Up @@ -1048,7 +1048,7 @@ export const commands: Chat.ChatCommands = {
}
}
},
offertiehelp: [`/offertie - Offers a tie to all players in a battle; if all accept, it ties. Can only be used after 100+ turns have passed. Requires: \u2606 @ # &`],
offertiehelp: [`/offertie - Offers a tie to all players in a battle; if all accept, it ties. Can only be used after 100+ turns have passed. Requires: \u2606 @ # ~`],

rejectdraw: 'rejecttie',
rejecttie(target, room, user) {
Expand Down Expand Up @@ -1161,7 +1161,7 @@ export const commands: Chat.ChatCommands = {
if (room.battle.replaySaved) this.parse('/savereplay');
this.addModAction(room.tr`${user.name} hid the replay of this battle.`);
},
hidereplayhelp: [`/hidereplay - Hides the replay of the current battle. Requires: ${Users.PLAYER_SYMBOL} &`],
hidereplayhelp: [`/hidereplay - Hides the replay of the current battle. Requires: ${Users.PLAYER_SYMBOL} ~`],

addplayer: 'invitebattle',
invitebattle(target, room, user, connection) {
Expand Down Expand Up @@ -1287,7 +1287,7 @@ export const commands: Chat.ChatCommands = {
},
uninvitebattlehelp: [
`/uninvitebattle [username] - Revokes an invite from a user to join a battle.`,
`Requires: ${Users.PLAYER_SYMBOL} &`,
`Requires: ${Users.PLAYER_SYMBOL} ~`,
],

restoreplayers(target, room, user) {
Expand Down Expand Up @@ -1349,7 +1349,7 @@ export const commands: Chat.ChatCommands = {
this.errorReply("/kickbattle - User isn't in battle.");
}
},
kickbattlehelp: [`/kickbattle [username], [reason] - Kicks a user from a battle with reason. Requires: % @ &`],
kickbattlehelp: [`/kickbattle [username], [reason] - Kicks a user from a battle with reason. Requires: % @ ~`],

kickinactive(target, room, user) {
this.parse(`/timer on`);
Expand Down Expand Up @@ -1395,7 +1395,7 @@ export const commands: Chat.ChatCommands = {
}
},
timerhelp: [
`/timer [start|stop] - Starts or stops the game timer. Requires: ${Users.PLAYER_SYMBOL} % @ &`,
`/timer [start|stop] - Starts or stops the game timer. Requires: ${Users.PLAYER_SYMBOL} % @ ~`,
],

autotimer: 'forcetimer',
Expand All @@ -1414,7 +1414,7 @@ export const commands: Chat.ChatCommands = {
}
},
forcetimerhelp: [
`/forcetimer [start|stop] - Forces all battles to have the inactive timer enabled. Requires: &`,
`/forcetimer [start|stop] - Forces all battles to have the inactive timer enabled. Requires: ~`,
],

forcetie: 'forcewin',
Expand Down Expand Up @@ -1442,8 +1442,8 @@ export const commands: Chat.ChatCommands = {
this.modlog('FORCEWIN', targetUser.id);
},
forcewinhelp: [
`/forcetie - Forces the current match to end in a tie. Requires: &`,
`/forcewin [user] - Forces the current match to end in a win for a user. Requires: &`,
`/forcetie - Forces the current match to end in a tie. Requires: ~`,
`/forcewin [user] - Forces the current match to end in a win for a user. Requires: ~`,
],

/*********************************************************
Expand Down Expand Up @@ -1702,7 +1702,7 @@ export const commands: Chat.ChatCommands = {
if (target.startsWith('/') || target.startsWith('!')) target = target.slice(1);

if (!target) {
const broadcastMsg = this.tr`(replace / with ! to broadcast. Broadcasting requires: + % @ # &)`;
const broadcastMsg = this.tr`(replace / with ! to broadcast. Broadcasting requires: + % @ # ~)`;

this.sendReply(`${this.tr`COMMANDS`}: /report, /msg, /reply, /logout, /challenge, /search, /rating, /whois, /user, /join, /leave, /userauth, /roomauth`);
this.sendReply(`${this.tr`BATTLE ROOM COMMANDS`}: /savereplay, /hideroom, /inviteonly, /invite, /timer, /forfeit`);
Expand Down
Loading

0 comments on commit e82c5fa

Please sign in to comment.