-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2 new commands, and some fixes for existing ones
- Loading branch information
Showing
5 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Axios from "axios"; | ||
import Settings from "../../src/settings" | ||
const { prefix } = require('../../src/utils.js'); | ||
|
||
const publicSSMApiPath = "https://hub.splitscreen.me/api/v1/"; | ||
|
||
exports.config = { | ||
name: `hubstats`, | ||
aliases: [], | ||
description: `Return stats from the hub`, | ||
usage: `${prefix}hubstats`, | ||
example: `${prefix}hubstats` | ||
} | ||
|
||
exports.execute = async (DiscordBot, receivedMessage, args) => { | ||
|
||
const totalDownloadCountEver = await Axios.get(publicSSMApiPath + 'totalDownloadCountEver'); | ||
console.log('settings: ', Settings.private.DEVELOPMENT_CHANNELS) | ||
console.log('received: ', receivedMessage.guild.id); | ||
if (Settings.private.DEVELOPMENT_CHANNELS.includes(receivedMessage.guild.id)) { | ||
console.log("hubstats access granted") | ||
receivedMessage.channel.send(`${totalDownloadCountEver.data}`); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Axios from "axios"; | ||
import Settings from "../../src/settings" | ||
const { prefix } = require('../../src/utils.js'); | ||
|
||
const publicSSMApiPath = "https://hub.splitscreen.me/api/v1/"; | ||
|
||
exports.config = { | ||
name: `invite`, | ||
aliases: ["inv", "invite-link", "inv-link"], | ||
description: `Return invite link to the Nucleus Coop Discord`, | ||
usage: `${prefix}invite`, | ||
example: `${prefix}invite` | ||
} | ||
|
||
exports.execute = async (DiscordBot, receivedMessage, args) => { | ||
console.log('settings: ', Settings.private.DEVELOPMENT_CHANNELS) | ||
console.log('received: ', receivedMessage.guild.id); | ||
console.log("hubstats access granted") | ||
console.log("guild.name: " + receivedMessage.guild.name) | ||
receivedMessage.reply("\nhttps://discord.gg/a9ssM5pxTW") | ||
}; |