Compare commits
	
		
			2 Commits
		
	
	
		
			d6d05f6a72
			...
			085b51a95d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 085b51a95d | |||
| fc41f8ad2f | 
| @ -8,5 +8,5 @@ var client = module.exports = new Discord.Client({ | ||||
| 
 | ||||
| client.login(config.token).then(async () => { | ||||
| 	console.log("ready"); | ||||
| 	(await client.channels.fetch(config.bot_channel))?.send('a'); | ||||
| 	(await client.channels.fetch(config.bot_channel))?.send('a2'); | ||||
| }); | ||||
|  | ||||
| @ -44,8 +44,8 @@ module.exports.interval = setInterval(updateUserStatuses, 1000*60*5); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| client.on("interactionCreate", async interaction => { | ||||
| 	if (interaction.commandName == "addvru") { | ||||
| client.on("interactionCreate", async i => { | ||||
| 	if (i.commandName == "addvru") { | ||||
| 		try { | ||||
| 			let u = i.options.getString("user"); | ||||
| 			let user = (await usersApi[u.startsWith("usr_") ? 'getUser' : 'getUserByName'](u)).data; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user