Created
February 4, 2021 11:18
-
-
Save TrizlyBear/fb565edfdba511dc005c9e2ce62304a2 to your computer and use it in GitHub Desktop.
One-line discord bot
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
new (require('discord.js')).Client().on('ready', () => {console.log("OnelineBot ready!")}).on('message',function(message){if(message.content.startsWith("t!")){try{require(`./commands/${message.content.split(" ")[0].substring(2)}`).execute(message)}catch(e){console.log("couldnt find command")}}}).login(token) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment