Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version 2 to required node-fetch's #1061

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/get_stats_from_dbl_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ module.exports = {
if (!topggToken) return console.log('Missing TopGG Token in Get Bot Stats From TopGG');

const Mods = this.getMods();
const fetch = Mods.require('node-fetch');
const fetch = Mods.require('node-fetch', '2');

fetch(`https://top.gg/api/bots/${botID}`, {
method: 'GET',
Expand Down
2 changes: 1 addition & 1 deletion actions/send_json_to_webapi_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ module.exports = {
const { Actions } = this.getDBM();

const Mods = this.getMods();
const fetch = require('node-fetch');
const fetch = Mods.require('node-fetch', '2');

let url = this.evalMessage(data.postUrl, cache);
const method = this.evalMessage(data.method, cache);
Expand Down
2 changes: 1 addition & 1 deletion actions/send_stats_to_botlist.me_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
const token = this.evalMessage(data.token, cache);
const info = parseInt(data.info, 10);
const Mods = this.getMods();
const fetch = Mods.require('node-fetch');
const fetch = Mods.require('node-fetch', '2');
const client = this.getDBM().Bot.bot;

const body = { server_count: client.guilds.cache.size };
Expand Down
2 changes: 1 addition & 1 deletion actions/send_stats_to_dbl_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {
const token = this.evalMessage(data.dblToken, cache);
const info = parseInt(data.info, 10);
const Mods = this.getMods();
const fetch = Mods.require('node-fetch');
const fetch = Mods.require('node-fetch', '2');
const client = this.getDBM().Bot.bot;

const body = [
Expand Down
2 changes: 1 addition & 1 deletion actions/store_html_from_webpage_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {

async action(cache) {
const Mods = this.getMods();
const fetch = Mods.require('node-fetch');
const fetch = Mods.require('node-fetch', '2');

const data = cache.actions[cache.index];

Expand Down
2 changes: 1 addition & 1 deletion actions/store_json_from_webapi_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module.exports = {
const data = cache.actions[cache.index];
const { Actions } = this.getDBM();
const Mods = this.getMods();
const fetch = Mods.require('node-fetch');
const fetch = Mods.require('node-fetch', '2');
const debugMode = parseInt(data.debugMode, 10);
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
Expand Down
2 changes: 1 addition & 1 deletion actions/store_twitch_info_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
const Mods = this.getMods();
const fetch = Mods.require('node-fetch');
const fetch = Mods.require('node-fetch', '2');

const input = this.evalMessage(data.input, cache);
const clientID = this.evalMessage(data.clientid, cache);
Expand Down
2 changes: 1 addition & 1 deletion actions/twitch_authentication_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
const Mods = this.getMods();
const fetch = Mods.require('node-fetch');
const fetch = Mods.require('node-fetch', '2');
const clientID = this.evalMessage(data.client_id, cache);
const clientSecret = this.evalMessage(data.client_secret, cache);
const info = parseInt(data.info, 10);
Expand Down
Loading