mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 00:10:58 -05:00
Remove bold markdown in JSON file
This commit is contained in:
parent
4b2ea5c28a
commit
19903dbcc9
@ -21,7 +21,6 @@ async function fetchData(client:TClient, interaction:Discord.ChatInputCommandInt
|
||||
}
|
||||
|
||||
const logPrefix = 'MPDB';
|
||||
const MAP_POOL_HOOKMSG = '1141293129673232435';
|
||||
const PALLET_FILTER = ['PALLETS', 'BIGBAGPALLETS'];
|
||||
|
||||
export default class MP {
|
||||
@ -166,7 +165,7 @@ export default class MP {
|
||||
|
||||
(client.channels.cache.get(client.config.dcServer.channels.mpmod_chat) as Discord.TextChannel).send({files: [new client.attachment(
|
||||
Buffer.from(JSON.stringify({
|
||||
map_names: msg.embeds[0].description.split('\n').map(x=>x.slice(3)),
|
||||
map_names: msg.embeds[0].description.split('\n').map(x=>x.slice(3).replace(/\*\*/g, '')),
|
||||
votes: msg.reactions.cache.map(x=>x.count)
|
||||
}, null, 2)), {name: `pollResults-${msg.id}.json`})
|
||||
]});
|
||||
@ -178,7 +177,7 @@ export default class MP {
|
||||
if (client.config.dcServer.id === interaction.guildId) {
|
||||
if (!interaction.member.roles.cache.has(client.config.dcServer.roles.mpmod) && !client.config.whitelist.includes(interaction.member.id)) return MessageTool.youNeedRole(interaction, 'mpmod');
|
||||
}
|
||||
const suggestionPool = await (interaction.guild.channels.cache.get(client.config.dcServer.channels.mpmod_chat) as Discord.TextChannel).messages.fetch(MAP_POOL_HOOKMSG);
|
||||
const suggestionPool = await (interaction.guild.channels.cache.get(client.config.dcServer.channels.mpmod_chat) as Discord.TextChannel).messages.fetch(MPChannels.modChat);
|
||||
interaction.reply({embeds: [suggestionPool.embeds[0]]});
|
||||
}, // Server management group
|
||||
create_server: async()=>{
|
||||
|
@ -21,6 +21,7 @@ export const MPChannels = {
|
||||
announcements: '1084864116776251463',
|
||||
mainMpChat: '468835769092669461',
|
||||
serverInfo: '543494084363288637',
|
||||
modChat: '1141293129673232435'
|
||||
}
|
||||
|
||||
interface IServerExt extends IServer {
|
||||
|
15
yarn.lock
15
yarn.lock
@ -513,9 +513,9 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"@types/lodash@npm:^4.17.0":
|
||||
version: 4.17.1
|
||||
resolution: "@types/lodash@npm:4.17.1"
|
||||
checksum: 10/384bdd29348a000f8e815f94839a1a8c7f5a4ca856b016ade7f2abdc1df0b4e3e009c113b69db320a8fde51d1f38e60c19462b9bf3e82e0e2e32d3ac3e7ba2c4
|
||||
version: 4.17.4
|
||||
resolution: "@types/lodash@npm:4.17.4"
|
||||
checksum: 10/3ec19f9fc48200006e71733e08bcb1478b0398673657fcfb21a8643d41a80bcce09a01000077c3b23a3c6d86b9b314abe0672a8fdfc0fd66b893bd41955cfab8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -1364,20 +1364,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"undici@npm:6.17.0":
|
||||
"undici@npm:6.17.0, undici@npm:^6.15.0":
|
||||
version: 6.17.0
|
||||
resolution: "undici@npm:6.17.0"
|
||||
checksum: 10/e54ae88f9ce4e923f2d1e209ad42d028e7d2b207ba81e6c1f3af9533b4aa33863120f61bc58fb5f7d4dd6a90c2bc8c96d892dbb8bf5be80e0cd422f31d15a9ef
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"undici@npm:^6.15.0":
|
||||
version: 6.16.1
|
||||
resolution: "undici@npm:6.16.1"
|
||||
checksum: 10/07dc67ec7a81323952effcbdb4aa674dd4f23aa872a03bdd4773d4e3b0b2aed268d116c8cfb012ecf272d2d1a0399055bf6ed134dd79b6a0920bab83ca483fcb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"universal-user-agent@npm:^6.0.0":
|
||||
version: 6.0.1
|
||||
resolution: "universal-user-agent@npm:6.0.1"
|
||||
|
Loading…
Reference in New Issue
Block a user