-
Notifications
You must be signed in to change notification settings - Fork 58
/
config.js
109 lines (101 loc) · 4.06 KB
/
config.js
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
const settings = {
// pass in any client configuration you want for the bot.
// more client options can be found at
// https://discord.js.org/#/docs/main/stable/typedef/ClientOptions
client: {
presence: {
activity: {
name: 'https://mai-san.ml/',
type: 'COMPETING'
}
},
// Disable Mentions except Users
allowedMentions: {parse: ['users']},
// Sweep messages every 12 hours
messageCacheLifetime: 43200,
messageSweepInterval: 43200
},
// Websites to monitor, accessible via client#pings
// function must be instances of promise.
monitorPings: {
timeout: 600000,
requests: [
{
name: 'jikan',
url: 'https://api.jikan.moe/v3/character/1',
registerAs: 'Jikan Latency',
description: 'Jikan latency displays the average amount of time it takes to fetch data from MyAnimeList.net.'
},{
name: 'anilist',
url: 'https://graphql.anilist.co',
options: { method: 'POST', body: JSON.stringify({ query: `{Media{id}}`})},
registerAs: 'AniList Latency',
description: 'Anilist latency displays the average amount of time it takes to fetch data from Anilist.co.'
},{
name: 'reddit',
url: 'https://reddit.com/r/animemes.json',
registerAs: 'Reddit Latency',
description: 'Reddit latency displays the time delay between sending requests and receiving data to and from reddit, respectively.'
},{
name: 'jisho',
url: 'https://jisho.org/api/v1/search/words?keyword=konnichiwa' ,
registerAs: 'Jisho Latency',
description: 'Jisho latency displays the amout of time it takes to make a full round of sending-and-receiveing of data from them.'
},
{
name: 'steam',
url: 'https://store.steampowered.com/api/storesearch/?cc=us&l=en&term=DDLC',
registerAs: 'Steam Latency',
description: 'Steam latency displays the amount of time it takes to request and receive an information from the STEAM API'
},{
name: 'time',
url: 'https://time.is/tokyo',
registerAs: 'Time.is Latency',
description: 'Time.is latency shows the time it takes to make a full request to the Time.is API'
},{
name: 'urban',
function: require('relevant-urban')('start'),
registerAs: 'Urban Latency',
description: 'Urban latency shows the time it takes to make a full request to the Urban Dictionary API.'
},
]
},
// set the default prefix, if non-string data-type is provided, will resolve
// to the prefix 'm!'
prefix: 'm!',
// allowed features for the bot, you can add/remove features you want.
allowedFeatures: [ 'ANISCHEDULE', 'CHATBOT', 'EXPERIENCE_POINTS'],
// logging channels for the bot. To disable logging specific events - pass
// a falsy value (undefined, null, 0). You may also remove the property
// altogether, although this is not preferred.
channels: { debug: '792385081850986496', votes: '809665224377761813', uploads: '728866550207086642', logs: '761935856331128837' },
// enable/disable database system in the bot, this will automatically disable
// all commands and features that requires database if disabled.
database: {
enable: true,
uri: process.env.MONGO_URI,
config: {
useUnifiedTopology: true,
useNewUrlParser: true,
autoIndex: false,
poolSize: 5,
connectTimeoutMS: 10000,
family: 4
}
},
// Array of owners recognized by the bot. ID here will be given access to
// owner based commands.
owners: [ '545427431662682112' ],
// websites affiliated with the bot, can be accessed through
// Client#config#websites
websites: {
"repository":"https://github.com/maisans-maid/Mai#readme/",
"website": "https://mai-san.ml/",
"invite": "https://invite.mai-san.ml/",
"support": "https://support.mai-san.ml/",
"docs": "https://mai-san.ml/docs/getting%20started/welcome/",
"top.gg": "https://top.gg/bot/702074452317307061/",
"DBL": "https://discordbotlist.com/bots/mai-3909/"
}
};
module.exports = settings;