mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Rename dontlookatme
to spotify
This commit is contained in:
parent
9d39a0ef9c
commit
277fdacf9f
@ -35,7 +35,7 @@ export default {
|
|||||||
if (typeof output === 'object') output = 'js\n'+util.formatWithOptions({depth: 1}, '%O', output)
|
if (typeof output === 'object') output = 'js\n'+util.formatWithOptions({depth: 1}, '%O', output)
|
||||||
else output = '\n' + String(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
|
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?'));
|
].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(
|
const embed = new client.embed().setColor(client.config.embedColor).setTitle('__Eval__').addFields(
|
||||||
|
@ -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.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.');
|
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);
|
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.');
|
if (!interaction.member.voice.channel) return interaction.reply('Please join a voice channel first to use the command.');
|
||||||
player.nodes.create(interaction.guildId, {
|
player.nodes.create(interaction.guildId, {
|
||||||
metadata: {
|
metadata: {
|
||||||
|
2
src/typings/interfaces.d.ts
vendored
2
src/typings/interfaces.d.ts
vendored
@ -116,7 +116,7 @@ export interface Tokens {
|
|||||||
main: string
|
main: string
|
||||||
beta: string
|
beta: string
|
||||||
toast: string
|
toast: string
|
||||||
dontlookatme: {
|
spotify: {
|
||||||
client: string,
|
client: string,
|
||||||
secret: string
|
secret: string
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user