-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGachaModules.cs
59 lines (52 loc) · 1.68 KB
/
GachaModules.cs
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
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
namespace ApexRandomBot
{
public class GachaModules : ModuleBase
{
private Legend _legend = new Legend();
private Weapon _weapon = new Weapon();
[Command("legend")]
public async Task LegendGacha() =>
await ReplyAsync(_legend.Gacha());
[Command("weapon")]
public async Task WeaponGacha()
{
var weaponTxt =
$"{_weapon.Gacha()}\n" +
$"{_weapon.Gacha()}";
await ReplyAsync(weaponTxt);
}
[Command("all")]
public async Task All()
{
var weaponTxt =
$"{_weapon.Gacha()}\n" +
$"{_weapon.Gacha()}";
var eb = new EmbedBuilder()
{
Color = Color.DarkBlue,
Title = $"{_legend.Gacha()}",
Description = weaponTxt
};
await ReplyAsync(message: ":upside_down:", embed: eb.Build());
}
[Command("help")]
public async Task HelpAsync()
{
var footer = new EmbedFooterBuilder()
.WithText($"シーズン{ApexVersion.SupportedVersion}まで対応しています。");
var eb = new EmbedBuilder()
{
Color = Color.DarkGreen,
Title = "コマンドリスト",
Footer = footer
};
eb.AddField("レジェンド", "```!legend```");
eb.AddField("武器", "```!weapon```");
eb.AddField("レジェンド+武器", "```!all```");
await ReplyAsync(embed: eb.Build());
}
}
}