-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelpCommandExamplepage2.lua
More file actions
45 lines (38 loc) · 907 Bytes
/
helpCommandExamplepage2.lua
File metadata and controls
45 lines (38 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
local discordia = require("discordia")
local client = discordia.Client()
client:on("ready", function() -- bot is ready
print("Logged in as " .. client.user.username)
end)
client:on("messageCreate", function(message)
local content = message.content
local author = message.author
if content == "!help2" then
message:reply {
embed = {
title = "Pomoc2!",
description = "Komendy Report-Bot-Status",
author = {
name = kamex,
icon_url = author.avatarURL
},
fields = { -- array of fields
{
name = "!ban",
value = "Banuje osobe",
inline = true
},
{
name = "!info",
value = "pokazuje info Report Bot Status",
inline = false
}
},
footer = {
text = "Created with kamex"
},
color = 0x000000 -- hex color code
}
}
end
end)
client:run("Bot BOT_TOKEN") -- replace BOT_TOKEN with your bot token