/
cmd_mpname.go
87 lines (80 loc) · 1.23 KB
/
cmd_mpname.go
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package commands
import (
"fmt"
"math/rand"
"strings"
"github.com/bwmarrin/discordgo"
"github.com/Southclaws/cj/types"
)
var firsts = []string{
"CJ",
"O.G.",
"SAMP",
"adorable",
"bay",
"bone",
"bulgarian",
"capital",
"carl",
"evolve",
"gay",
"god",
"godfather",
"halal",
"infinity",
"las",
"leaked",
"mom",
"next",
"one",
"payday",
"pisd",
"pure",
"red",
"role",
"san",
"scavenge",
"sexy",
"texas",
}
var seconds = []string{
"SAMP",
"andreas",
"area",
"christian",
"cops",
"county",
"day",
"game",
"gangstas",
"ginger",
"halal",
"johnson",
"life",
"one",
"parrot",
"pisd",
"play",
"survive",
"turtle",
"world",
}
func mpname() string {
mp := []byte("00-MP")
first := firsts[rand.Intn(len(firsts))]
second := seconds[rand.Intn(len(seconds))]
mp[0] = []byte(strings.ToUpper(first))[0]
mp[1] = []byte(strings.ToUpper(second))[0]
return fmt.Sprintf("%s: %s %s Multiplayer", string(mp), strings.Title(first), strings.Title(second))
}
func (cm *CommandManager) commandMP(
interaction *discordgo.InteractionCreate,
args map[string]*discordgo.ApplicationCommandInteractionDataOption,
settings types.CommandSettings,
) (
context bool,
err error,
) {
cm.replyDirectly(interaction, mpname())
return
}