misc: Remove Clyde (#2764)

* Remove Clyde

* Remove Clyde avatar overwrite

* Remove Clyde from the user pattern
This commit is contained in:
Frangu Vlad
2018-08-18 14:21:24 +03:00
committed by Crawl
parent 3b91fa0b49
commit 94214fa733
3 changed files with 1 additions and 15 deletions

View File

@@ -19,19 +19,6 @@ class ReadyHandler extends AbstractHandler {
for (const guild of data.guilds) client.guilds.add(guild);
for (const privateDM of data.private_channels) client.channels.add(privateDM);
if (!client.users.has('1')) {
client.users.add({
id: '1',
username: 'Clyde',
discriminator: '0000',
avatar: 'https://discordapp.com/assets/f78426a064bc9dd24847519259bc42af.png',
bot: true,
status: 'online',
activity: null,
verified: true,
});
}
const t = client.setTimeout(() => {
client.ws.connection.triggerReady();
}, 1200 * data.guilds.length);

View File

@@ -160,7 +160,7 @@ MessageMentions.EVERYONE_PATTERN = /@(everyone|here)/g;
* Regular expression that globally matches user mentions like `<@81440962496172032>`
* @type {RegExp}
*/
MessageMentions.USERS_PATTERN = /<@!?(1|\d{17,19})>/g;
MessageMentions.USERS_PATTERN = /<@!?(\d{17,19})>/g;
/**
* Regular expression that globally matches role mentions like `<@&297577916114403338>`

View File

@@ -124,7 +124,6 @@ exports.Endpoints = {
Asset: name => `${root}/assets/${name}`,
DefaultAvatar: number => `${root}/embed/avatars/${number}.png`,
Avatar: (userID, hash, format = 'default', size) => {
if (userID === '1') return hash;
if (format === 'default') format = hash.startsWith('a_') ? 'gif' : 'webp';
return makeImageUrl(`${root}/avatars/${userID}/${hash}`, { format, size });
},