-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.ts
More file actions
85 lines (76 loc) · 2.52 KB
/
config.ts
File metadata and controls
85 lines (76 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { ActivityType } from "discord.js";
import { version } from "@discordjs/voice";
import type { RadioChannel } from "./radio.js";
import type { ActivitiesOptions } from "discord.js";
/**
* Discord Bot Token. To know how to create and get your bot's token
* visit https://discordjs.guide/preparations/setting-up-a-bot-application.html
*/
export const botToken = "";
/**
* Set the bot's activity (status)
*/
export const activity: ActivitiesOptions = {
name: `v${version}`, // status text
type: ActivityType.Streaming, // status type: https://discord-api-types.dev/api/discord-api-types-v10/enum/ActivityType
url: "https://twitch.tv/#" // twitch or youtube url (only for streaming type)
};
/**
* Server general voice (not stage) channel id
*/
export const voiceChannelId = "";
/**
* Any text channel id to send the radio
* player controls managed by buttons
* leaving this empty would send it in voice channel
*/
export const textChannelId = "";
/**
* Discord user id's of people who can switch
* between radio channels by using buttons on
* the message sent in voice/text channel, example:
*
* export const broadcasters: string[] = new Set<string>(["0123456789", "8164826194"]);
*
* Note: owners and team members (if any) of the bot are added automatically due ownership
*/
export const broadcasters = new Set<string>([]);
/**
* The message to be shown for non-broadcasting members
* if they attempt to change streams through menus/buttons
*/
export const nonBroadcastingMemberNotice = "You're not allowed to change the stream";
/**
* Set 'streamILoveMusic' to 'true' for streaming
* from 'sourceILoveMusic'; 'false' otherwise to
* avoid streaming channels from ilovemusic.de
*/
export const streamILoveMusic = true;
export const sourceILoveMusic = "https://ilovemusic.de/streams/";
/**
* Custom radio channels go here, example:
*
* export const otherRadioChannels: RadioChannel[] = [
* {
* name: "Channel Name",
* url: "URL to a webpage for this channel", // [optional]
* streamURL: "The url from which this channel can be streamed"
* }
* ];
*
* You can add multiple channels by separating every channel '{...}' by a comma:
*
* export const otherRadioChannels: RadioChannel[] = [
* {
* name: "Channel 1",
* url: "channel 1 webpage url", // [optional]
* streamURL: "channel 1 stream url"
* },
* {
* name: "Channel 2",
* url: "channel 2 webpage url", // [optional]
* streamURL: "channel 2 stream url"
* }
* ];
*/
export const otherRadioChannels: RadioChannel[] = [];