mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Fix file extension in URL
This commit is contained in:
parent
b1b0c3692e
commit
f0b7cb2812
@ -52,7 +52,7 @@ export default class Academy {
|
|||||||
]}),
|
]}),
|
||||||
update: async()=>{
|
update: async()=>{
|
||||||
if (!client.config.whitelist.includes(interaction.user.id)) return MessageTool.youNeedRole(interaction, 'bottech');
|
if (!client.config.whitelist.includes(interaction.user.id)) return MessageTool.youNeedRole(interaction, 'bottech');
|
||||||
const articles = await Undici.fetch('https://raw.githubusercontent.com/AnxietyisReal/Daggerbot-TS/master/src/articles.yml').then(x=>x.text());
|
const articles = await Undici.fetch('https://raw.githubusercontent.com/AnxietyisReal/Daggerbot-TS/master/src/articles.yaml').then(x=>x.text());
|
||||||
writeFileSync('src/articles.yml', articles, 'utf8');
|
writeFileSync('src/articles.yml', articles, 'utf8');
|
||||||
await interaction.reply({embeds: [new client.embed()
|
await interaction.reply({embeds: [new client.embed()
|
||||||
.setColor(client.config.embedColorGreen)
|
.setColor(client.config.embedColorGreen)
|
||||||
|
Loading…
Reference in New Issue
Block a user