File tree 2 files changed +25
-61
lines changed 2 files changed +25
-61
lines changed Original file line number Diff line number Diff line change 1
1
require ( 'dotenv' ) . config ( ) ;
2
- const { Client, IntentsBitField } = require ( 'discord.js' ) ;
2
+ const { Client, IntentsBitField, ActivityType } = require ( 'discord.js' ) ;
3
3
4
4
const client = new Client ( {
5
5
intents : [
@@ -10,8 +10,32 @@ const client = new Client({
10
10
] ,
11
11
} ) ;
12
12
13
+ let status = [
14
+ {
15
+ name : 'Under Ctrl' ,
16
+ type : ActivityType . Streaming ,
17
+ url : 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' ,
18
+ } ,
19
+ {
20
+ name : 'Custom Status 1' ,
21
+ } ,
22
+ {
23
+ name : 'Custom Status 2' ,
24
+ type : ActivityType . Watching ,
25
+ } ,
26
+ {
27
+ name : 'Custom Status 3' ,
28
+ type : ActivityType . Listening ,
29
+ } ,
30
+ ] ;
31
+
13
32
client . on ( 'ready' , ( c ) => {
14
33
console . log ( `✅ ${ c . user . tag } is online.` ) ;
34
+
35
+ setInterval ( ( ) => {
36
+ let random = Math . floor ( Math . random ( ) * status . length ) ;
37
+ client . user . setActivity ( status [ random ] ) ;
38
+ } , 10000 ) ;
15
39
} ) ;
16
40
17
41
client . login ( process . env . TOKEN ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments