-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.js
139 lines (86 loc) · 5.68 KB
/
constants.js
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
//Changing variable - Only for prefix code
const config = require("./config.json");
const prefix = config.prefix;
//Constant variables - Will not and should not be changed in the code
function getHelpCommands(parm) {
switch (parm) {
case "main":
return `
**Main Commands**
~~--------------------~~
**\`${prefix}register\`** Creates a ${config.botname} profile to send/receive ${config.ctick} and Syscoin Platform Tokens (SPTs)!
**\`${prefix}balance\`** Views your current ${config.ctick} and SPT balances.
**\`${prefix}deposit\`** Gets your ${config.ctick} deposit address.
**\`${prefix}withdraw [address] [amount] [symbol/guid]\`** Withdraw ${config.ctick} or SPTs to your personal wallet address.
**\`${prefix}tip @user [amount] [symbol/guid]\`** Send some ${config.ctick} or SPTs to another user.
**\`${prefix}foundation\`** Find out more about the Syscoin Foundation.
**\`${prefix}help nevm\`** Show help NEVM commands
`;
case "main-nevm": {
return `**Main NEVM Commands**
~~--------------------~~
**\`${prefix}register nevm\`** Creates a ${config.botname} NEVM profile to send/receive ${config.ctick} and Syscoin Platform Tokens (SPTs)!
**\`${prefix}balance nevm \`** Views your current ${config.ctick} balance and token balances.
**\`${prefix}deposit nevm\`** Gets your ${config.ctick} deposit address.
**\`${prefix}withdraw [address] [amount] nevm [token-name]\`** Withdraw ${config.ctick} or tokens to your personal wallet address.
**\`${prefix}tip @user [amount] nevm [token-name]\`** Send some ${config.ctick} or tokens to another user.
`;
}
case "trade":
return `
**Trade Commands**
~~--------------------~~
**\`${prefix}trade [amount] [symbol/guid] for [amount] [symbol/guid] with @user\`** Creates a trade for the given tokens with the specified user. The trade will be cancelled after ${config.tradeTime} minutes.
**\`${prefix}accept [trade ID]\`** Accepts the trade with the given trade ID.
**\`${prefix}cancel [trade ID]\`** Cancels the trade with the given trade ID.
**\`${prefix}recent <symbol/guid>\`** Lists some recent trades. Symbol/guid is optional; if included the list will only show trades with those tokens.
`;
break;
case "auction":
return `
**Auction Commands**
~~--------------------~~
**\`${prefix}auction [amount] [token] [timeAmount][m/h/d] [reserveAmount]\`** Creates an auction with the specified variables.
**\`${prefix}bid [auction ID] [amount]\`** Bids on the specified auction for the given amount of ${config.ctick}.
**\`${prefix}cancel [auction ID]\`** Cancels the auction with the given auction ID (if there are no bids).
**\`${prefix}show [auction ID]\`** Shows the given auction with all it's information.
**\`${prefix}find [symbol/guid]\`** Finds and returns some of the auctions with the given token, ending soonest.
**\`${prefix}findold [symbol/guid]\`** Finds and returns some of the auctions with the given token that ended most recently.
**\`${prefix}list\`** Finds and returns some of the auctions that are ending soonest.
`;
case "mission":
return `
**Mission Commands**
~~------------~~
NOTE: With great power, comes great responsibility.
You must be a member of the role **${config.discordAdminRole}** to perform these commands. Also, these can only be performed in a bot channel (no DMs).
**\`${prefix}create [missionName] [payout] [symbol/guid] [timeAmount][s/m/h/d] <@suggester> <suggesterPayout>\`** Create a new mission with the given name, payout, symbol/guid and time limit, suggester and suggesterPayout optional
**\`${prefix}edit [missionName] [payout] [symbol/guid] [timeAmount][s/m/h/d] <@suggester> <suggesterPayout>\`** Edit an existing mission with the given name, payout, symbol/guid and time limit, suggester and suggesterPayout optional
**\`${prefix}add [missionName] @user\`** Adds a user to a mission i.e. they will receive the payout.
**\`${prefix}remove [missionName] @user\`** Removes a user from a mission i.e. they will no longer receive the payout.
**\`${prefix}list <missionName>\`** Lists all users in the given mission.
**\`${prefix}pay [missionName]\`** Pays all users that have participated in the given mission.
**\`${prefix}archive [missionName]\`** Archives the given mission.
**\`${prefix}missions\`** Lists all active missions.
**\`${prefix}missionarchive\`** Lists all archived missions.
`;
break;
case "admin":
return `
**Admin Commands**
~~------------~~
NOTE: With great power, comes great responsibility.
You must be a member of the role **${config.discordAdminRole}** to perform admin commands. Also, these can only be performed in a bot channel (no DMs).
**\`${prefix}restrict @user\`** Restrict a user. The user will receive a DM.
**\`${prefix}unrestrict @user\`** Unrestrict a user. The user will receive a DM notifying them to follow the rules.
**\`${prefix}check @user\`** Check if a user is restricted.
**\`${prefix}giveaway [timeAmount][s/m] [winnersAmount][w] [payout] [symbol/guid]\`** Creates a giveaway with the specified parameters.
**\`${prefix}verifytoken [guid] [chosenSymbol] <linkToNFT>\`** Verify a SPT so users can refer to it using the chosen symbol rather than guid. If a link to the NFT is included, the NFT will be embedded within auctions/trades/giveaways.
`;
break;
default:
}
}
module.exports = {
help: getHelpCommands,
};