generated from Mirasaki/discord.js-bot-template
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
7,549 additions
and
4,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,3 +120,9 @@ TODO.md | |
|
||
# In-development, Intellisense for events/listeners | ||
typings.d.ts | ||
|
||
# DB and db save | ||
*.db | ||
*.db~ | ||
|
||
TODO |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,100 @@ | ||
/** | ||
* @type {@type {module:Client~ClientConfiguration}} | ||
*/ | ||
|
||
const { PermissionsBitField } = require('discord.js'); | ||
|
||
const config = { | ||
// Array of Intents your bot needs | ||
// https://discord.com/developers/docs/topics/gateway#gateway-intents | ||
intents: [ 'Guilds' ], | ||
// Note: all the default# properties all configurable by commands | ||
// This is here so that you can configure everything in one go | ||
// without having to figure out different commands, | ||
// if you're not comfortable editing this, use the commands | ||
|
||
// Note: default# properties only take affect the first time | ||
// playback is initialized in your server/guild | ||
|
||
// Between 0 and 100 | ||
// 100 is obnoxiously loud and will f*** your ears | ||
defaultVolume: 5, | ||
|
||
// The default repeat mode | ||
// 0 - Off | Don't repeat | ||
// 1 - Track | Repeat current track, always - until skipped | ||
// 2 - Queue | Repeat the entire queue, finished songs get added back at the end of the current queue | ||
// 3 - Autoplay | Autoplay recommended music when queue is empty | ||
// | ||
// 3 = 24/7 autoplay/continuous radio if uninterrupted - only use if you have | ||
// bandwidth for days | ||
defaultRepeatMode: 0, | ||
|
||
// Amount of seconds to stay in the voice channel | ||
// when playback is finished | ||
// Default: 2 minutes | ||
defaultLeaveOnEndCooldown: 120, | ||
|
||
// When true, will create a thread when the voice session is first initialized | ||
// and continue to send music/queue events in that thread instead of flooding | ||
// the channel | ||
defaultUseThreadSessions: true, | ||
|
||
// When true, and defaultUseThreadSessions is true, will only allow commands involving | ||
// the current session to be used in the created session Thread channel | ||
defaultThreadSessionStrictCommandChannel: true, | ||
|
||
// Plugins/Music source extractors | ||
plugins: { | ||
youtube: true, | ||
fileAttachments: true, | ||
|
||
appleMusic: true, | ||
vimeo: true, | ||
reverbNation: true, | ||
// To disable Spotify: | ||
// spotify: false, | ||
spotify: { | ||
clientId: process.env.SPOTIFY_CLIENT_ID, | ||
clientSecret: process.env.SPOTIFY_CLIENT_SECRET | ||
}, | ||
|
||
// Problematic, slows queries down by ~3 seconds | ||
// if enabled, and you can no longer query with | ||
// /play, use /search instead, grab the desired link | ||
// and /play that instead | ||
soundCloud: false | ||
}, | ||
|
||
// Bot activity | ||
presence: { | ||
// One of online, idle, invisible, dnd | ||
status: 'online', | ||
activities: [ | ||
{ | ||
name: '/help', | ||
name: '/play', | ||
// One of Playing, Streaming, Listening, Watching | ||
type: 'Listening' | ||
} | ||
] | ||
}, | ||
|
||
// Additional permissions that are considered required when generating | ||
// the bot invite link with /invite | ||
permissionsBase: [ | ||
PermissionsBitField.Flags.ViewChannel, | ||
PermissionsBitField.Flags.SendMessages, | ||
PermissionsBitField.Flags.SendMessagesInThreads | ||
], | ||
|
||
// Permission config | ||
permissions: { | ||
// Bot Owner, highest permission level (5) | ||
ownerId: '290182686365188096', | ||
|
||
// Bot developers, second to highest permission level (4) | ||
developers: [ '625286565375246366' ] | ||
developers: [ '' ] | ||
}, | ||
|
||
// The Discord server invite to your Support server | ||
supportServerInviteLink: 'https://discord.mirasaki.dev' | ||
supportServerInviteLink: 'https://discord.gg/mirasaki', | ||
|
||
// Additional permissions that are considered required when generating | ||
// the bot invite link with /invite | ||
permissionsBase: [ | ||
PermissionsBitField.Flags.ViewChannel, | ||
PermissionsBitField.Flags.SendMessages, | ||
PermissionsBitField.Flags.SendMessagesInThreads | ||
] | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.