Skip to content

Commit

Permalink
changes to needed files
Browse files Browse the repository at this point in the history
  • Loading branch information
EngineerShawn committed Nov 22, 2023
1 parent 4015182 commit 488a80f
Show file tree
Hide file tree
Showing 662 changed files with 28,993 additions and 127,828 deletions.
2 changes: 2 additions & 0 deletions backend/combined.log
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
{"level":"info","message":"Server is running on port 3000","timestamp":"2023-11-18T19:08:02.950Z"}
{"level":"info","message":"Server is running on port 3000","timestamp":"2023-11-18T19:20:14.632Z"}
{"level":"info","message":"Server is running on port 53134","timestamp":"2023-11-22T00:29:00.285Z"}
{"level":"info","message":"Server is running on port 53134","timestamp":"2023-11-22T12:19:39.849Z"}
{"level":"info","message":"Server is running on port 53134","timestamp":"2023-11-22T12:20:24.092Z"}
6 changes: 3 additions & 3 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"common-tags": "^1.8.2",
"discord-backup": "^3.3.2",
"discord-giveaways": "^6.0.1",
"discord-xp": "^1.1.16",
"novacord-xp": "^1.1.16",
"discord.js": "^14.14.1",
"discord.js-akinator": "^4.1.2",
"eventemitter3": "^5.0.1",
Expand Down
3 changes: 2 additions & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function createDiscordAuthUrl(clientId, redirectUri, state, scope = ['identify',
return `${baseUrl}?${urlParams}`;
}


// Redirect to Discord for OAuth
app.get('/oauth2/authorize', (req, res) => {
const discordAuthUrl = createDiscordAuthUrl(
Expand Down Expand Up @@ -159,4 +160,4 @@ client.once('ready', () => {
client.login(process.env.NOVA_BOT_TOKEN);

// // Export for testing purposes
// module.exports = app;
module.exports = app;
18 changes: 9 additions & 9 deletions projects/nova-ai-discord/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require('dotenv').config({path: '../../.env'});
module.exports = {
bot: {
token: process.env.NOVA_BOT_TOKEN, //Bot Token from https://discord.com/developers/applications
prefix: "!", //Bot Prefix
prefix: "/", //Bot Prefix
owners: ["915420974873210890"], //Bot Onwer ID
maintenance: false,
postgresUrl: process.env.DATABASE_URL,
Expand All @@ -23,7 +23,7 @@ module.exports = {
dash: {
secret: process.env.CLIENT_SECRET, //SECRET Bot
id: "1172432649307037787", //ID Bot
url: "https://discord.com/oauth2/authorize" //URL
url: 'http://localhost:3000' //URL
},
server: {
id: "1172442013543698483", //Server ID
Expand All @@ -45,16 +45,16 @@ module.exports = {
"https://i.pinimg.com/736x/d1/00/7b/d1007b46e6175f49f53712f16e4f6a3c.jpg" //Image Leaderboard Card
},
mod: {
muted_defauld: "Muted", // bot will make Roles muted for members who got muted
muted_default: "Muted", // bot will make Roles muted for members who got muted
limit_warn: 3, //bot will kick member if it has 3 warns
limit_muted: 5 //bot will kick member if it has 5 Muted
},
logs: {
boton: "1175424494945448046", //Channel ID Bot Online
botadd: "1175424614541840414", //Channel ID Bot Add In Guild
botdel: "1175424614541840414", //Channel ID Bot Remove in Guild
botreport: "1175424614541840414",
boterror: "1175424614541840414"
boton: "", //Channel ID Bot Online
botadd: "", //Channel ID Bot Add In Guild
botdel: "", //Channel ID Bot Remove in Guild
botreport: "",
boterror: ""
},
giveaway: {
default: {
Expand All @@ -68,4 +68,4 @@ module.exports = {
}
}
};
// console.log(module.exports.bot);
console.log(module.exports.bot);
Loading

0 comments on commit 488a80f

Please sign in to comment.