mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
update imports
This commit is contained in:
4
app.js
4
app.js
@@ -1,5 +1,5 @@
|
||||
import 'dotenv/config'
|
||||
import express, { json } from 'express'
|
||||
import express from 'express'
|
||||
import axios from 'axios';
|
||||
import { InteractionType, InteractionResponseType } from 'discord-interactions';
|
||||
import { VerifyDiscordRequest, getRandomEmoji, ComponentType, ButtonStyle, DiscordAPI } from './utils.js';
|
||||
@@ -151,4 +151,4 @@ app.listen(3000, () => {
|
||||
|
||||
// Check if guild commands from commands.json are installed (if not, install them)
|
||||
HasGuildCommands(client, process.env.APP_ID, process.env.GUILD_ID, [TEST_COMMAND, CHALLENGE_COMMAND]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -72,4 +72,4 @@ export const CHALLENGE_COMMAND = {
|
||||
}
|
||||
],
|
||||
"type": 1
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dotenv/config'
|
||||
import express from 'express'
|
||||
import { InteractionType, InteractionResponseType } from 'discord-interactions';
|
||||
import { VerifyDiscordRequest, ComponentType, ButtonStyle } from './utils.js';
|
||||
import { VerifyDiscordRequest, ComponentType, ButtonStyle } from '../utils.js';
|
||||
|
||||
// Create and configure express app
|
||||
const app = express();
|
||||
@@ -58,4 +58,4 @@ app.post('/interactions', function (req, res) {
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log('Listening on port 3000');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dotenv/config'
|
||||
import express from 'express'
|
||||
import { InteractionType, InteractionResponseType } from 'discord-interactions';
|
||||
import { VerifyDiscordRequest } from './utils.js';
|
||||
import { VerifyDiscordRequest, DiscordAPI } from '../utils.js';
|
||||
import axios from 'axios';
|
||||
|
||||
// Create and configure express app
|
||||
@@ -67,4 +67,4 @@ app.listen(3000, () => {
|
||||
console.log('Listening on port 3000');
|
||||
|
||||
createCommand();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import 'dotenv/config'
|
||||
import express from 'express'
|
||||
import { InteractionType, InteractionResponseType } from 'discord-interactions';
|
||||
import { VerifyDiscordRequest } from './utils.js';
|
||||
import { ComponentType } from '../utils.js';
|
||||
import { VerifyDiscordRequest, ComponentType } from '../utils.js';
|
||||
|
||||
// Create and configure express app
|
||||
const app = express();
|
||||
@@ -82,4 +81,4 @@ app.post('/interactions', function (req, res) {
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log('Listening on port 3000');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dotenv/config'
|
||||
import express from 'express'
|
||||
import { InteractionType, InteractionResponseType } from 'discord-interactions';
|
||||
import { VerifyDiscordRequest, ComponentType } from './utils.js';
|
||||
import { VerifyDiscordRequest, ComponentType } from '../utils.js';
|
||||
|
||||
// Create and configure express app
|
||||
const app = express();
|
||||
@@ -73,4 +73,4 @@ app.post('/interactions', function (req, res) {
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log('Listening on port 3000');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user