Skip to content

Commit ee2c79f

Browse files
committed
work ok thank
1 parent 614187d commit ee2c79f

File tree

4 files changed

+26
-21
lines changed

4 files changed

+26
-21
lines changed

commands/addQuestion.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ function between(min, max) {
1313
const readline = require("readline");
1414
const fs = require("fs");
1515
const { cpuUsage } = require("process");
16-
function sendFAQChannel() {
17-
client.channels.cache
18-
.get("701517404659777666")
19-
.send(collected.first().content, collected.last().content);
20-
}
16+
2117

2218
module.exports = {
2319
name: "addfaq",
@@ -39,14 +35,23 @@ module.exports = {
3935
if ((message.member.hasPermission("ADMINISTRATOR"))) {
4036
var ID;
4137
ID = Math.random().toString(36).substr(2, 9);
38+
function sendFAQChannel() {
39+
let channel = client.channels.cache.get("701517404659777666")
40+
let faqqanda = new MessageEmbed()
41+
.setColor("#ff9100")
42+
.addField(myEnmap.faqs.observe(ID), ID);
43+
client.channels.cache.get('701517404659777666');
44+
channel.send(faqqanda);
45+
}
4246
myEnmap.faqs.fetchAll
4347
myEnmap.faqs.set(ID, [
4448
"Question: ",
4549
collected.first().content,
4650
"Answer: ",
4751
collected.last().content,
4852
]);
49-
message.channel.send("FAQ Saved! ID " + ID);
53+
message.channel.send("FAQ Saved! ID is- " + ID);
54+
sendFAQChannel();
5055
} else {
5156
message.channel.send(
5257
"Oops! looks like you don't have the right permissions!"

commands/battleHacks.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,68 @@ const { description } = require("./ping");
22
const { MessageEmbed } = require("discord.js");
33
module.exports = {
44
name: "battle",
5-
description: "Battle hacks",
5+
description: "battle hacks",
66
execute(message, args) {
77
let embed = new MessageEmbed()
88
.setColor("#ff9100")
99
.addField(
10-
"Battle Losses",
11-
"[battleLosses.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/battleLoses.js)",
10+
"battle Losses",
11+
"[battleLosses.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/battleLoses.js)",
1212
true
1313
)
1414
.addField(
1515
"Boss Difficulty",
16-
"[bossDifficulty.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/bossDifficulty.js)",
16+
"[bossDifficulty.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/bossDifficulty.js)",
1717
true
1818
)
1919
.addField(
20-
"Escape Battle",
21-
"[escapeBattle.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/escapeBattle.js)",
20+
"Escape battle",
21+
"[escapebattle.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/escapebattle.js)",
2222
true
2323
)
2424
.addField(
2525
"Free Catches!",
26-
"[freeCatches.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/freeCatches.js)",
26+
"[freeCatches.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/freeCatches.js)",
2727
true
2828
)
2929
.addField(
3030
"Heal Team",
31-
"[healTeam.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/healTeam.js)",
31+
"[healTeam.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/healTeam.js)",
3232
true
3333
)
3434
.addField(
3535
"Immortal",
36-
"[immortal.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/immortal.js)",
36+
"[immortal.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/immortal.js)",
3737
true
3838
)
3939
.addField(
4040
"Infinite Catch Attempts",
41-
"[infiniteCatchAttempts.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/infiniteCatchAttempts.js)",
41+
"[infiniteCatchAttempts.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/infiniteCatchAttempts.js)",
4242
true
4343
)
4444
.addField(
4545
"Instant Win!",
46-
"[instantWin.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/instantWin.js)",
46+
"[instantWin.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/instantWin.js)",
4747
true
4848
)
4949
.addField(
5050
"Invincibility",
51-
"[invincibility.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/invincibility.js)",
51+
"[invincibility.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/invincibility.js)",
5252
true
5353
)
5454
.addField(
5555
"All Monsters Level 1",
56-
"[monstersLevel1.js ](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/monstersLevel1.js)",
56+
"[monstersLevel1.js ](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/monstersLevel1.js)",
5757
true
5858
)
5959
.addField(
6060
"One Shot Enemy",
61-
"[oneShotEnemy.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/oneShotEnemy.js)",
61+
"[oneShotEnemy.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/oneShotEnemy.js)",
6262
true
6363
)
6464
.addField(
6565
"Skip Enemy Turn",
66-
"[skipEnemyTurn.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/Battle/skipEnemyTurn.js)",
66+
"[skipEnemyTurn.js](https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/hacks/battle/skipEnemyTurn.js)",
6767
true
6868
);
6969
message.channel.send(embed);

data/enmap.sqlite-shm

0 Bytes
Binary file not shown.

data/enmap.sqlite-wal

129 KB
Binary file not shown.

0 commit comments

Comments
 (0)