From de7169035f08ef1e7ecfe700a1cbeeaa9d046088 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:42:06 +1000 Subject: [PATCH] Rename `dontlookatme` to `spotify` --- src/commands/dev.ts | 2 +- src/commands/music.ts | 2 +- src/typings/interfaces.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/dev.ts b/src/commands/dev.ts index 63ff9a0..ee54adc 100644 --- a/src/commands/dev.ts +++ b/src/commands/dev.ts @@ -35,7 +35,7 @@ export default { if (typeof output === 'object') output = 'js\n'+util.formatWithOptions({depth: 1}, '%O', output) else output = '\n' + String(output); [ - client.tokens.main,client.tokens.beta,client.tokens.toast,client.tokens.dontlookatme.client,client.tokens.dontlookatme.secret, + client.tokens.main,client.tokens.beta,client.tokens.toast,client.tokens.spotify.client,client.tokens.spotify.secret, client.tokens.mongodb_uri,client.tokens.mongodb_uri_dev,client.tokens.octokit ].forEach(x=>output = output.replace(new RegExp(x as string,'g'),':noblank: No token?')); const embed = new client.embed().setColor(client.config.embedColor).setTitle('__Eval__').addFields( diff --git a/src/commands/music.ts b/src/commands/music.ts index cbe5749..6f01c46 100644 --- a/src/commands/music.ts +++ b/src/commands/music.ts @@ -7,7 +7,7 @@ export default { if (!client.config.botSwitches.music && !client.config.whitelist.includes(interaction.user.id)) return interaction.reply({content:'Music module is currently disabled.',ephemeral:true}); if (!client.isStaff(interaction.member) && !client.config.whitelist.includes(interaction.member.id)) return interaction.reply('Music module is close to being completed, some parts may be incomplete or broken, so it has been restricted to staff for time-being.'); const player = Player.singleton(client); - await player.extractors.register(SpotifyExtractor,{clientId: client.tokens.dontlookatme.client, clientSecret: client.tokens.dontlookatme.secret}); + await player.extractors.register(SpotifyExtractor,{clientId: client.tokens.spotify.client, clientSecret: client.tokens.spotify.secret}); if (!interaction.member.voice.channel) return interaction.reply('Please join a voice channel first to use the command.'); player.nodes.create(interaction.guildId, { metadata: { diff --git a/src/typings/interfaces.d.ts b/src/typings/interfaces.d.ts index 4c19d16..8e83c24 100644 --- a/src/typings/interfaces.d.ts +++ b/src/typings/interfaces.d.ts @@ -116,7 +116,7 @@ export interface Tokens { main: string beta: string toast: string - dontlookatme: { + spotify: { client: string, secret: string }