Sound's World Code
gist.github.com·238w
import { Client, Message, User } from "discord.js"
import chalk from "chalk"
const client: Client = new Client()
client.on(‘ready’, () => {
console.log(chalk.green(`started bot on ${client.user.tag}`))
})
client.on(‘message’, async function(message: Message) {
if (!message.guild) return
if (message.author.bot) return
if (!message.content.startsWith(‘!’)) return
const args: Array<string> = message.content.slice(`!`.length).trim().split(" ")
const commandName: string = args.shift().toLowerCase()
console.log(chalk.yellow(`command ${commandName} with args [${args}...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help