1
0
forked from tommy/tommy-bot

rank command and other stuff

This commit is contained in:
tommy aka doge
2022-04-03 20:18:44 -04:00
parent 0982accac7
commit 2f654ae249
4 changed files with 117 additions and 25 deletions

View File

@ -212,6 +212,8 @@ local token = require('./modules/token.lua')
local commands=require('./modules/commands.lua')
local prefix = ','
local client = discordia.Client()
_G.client = client
discordia.extensions()
client:on('ready',function()
@ -247,7 +249,7 @@ function parseMentions(message)
if v:match('<@![0-9]+>') then
local id=v:match('<@!([0-9]+)>')
if usersMentioned[id] then
msgSplit[i]=usersMentioned[id].name
msgSplit[i]=usersMentioned[id].mentionString
end
end
end