Skip to content

Commit

Permalink
Merge pull request #22 from Vishvaas06/main
Browse files Browse the repository at this point in the history
Fufu - Added guild selection page + smth more i don't remember
  • Loading branch information
Vishvaas06 committed Jun 12, 2024
2 parents 51d26cd + 1ed4ef3 commit 32720a7
Show file tree
Hide file tree
Showing 18 changed files with 4,349 additions and 82 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules/
node_modules/
.env
dashboard-db
database
31 changes: 31 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const { AoiClient, LoadCommands } = require("aoi.js");
require("dotenv").config();
const { Dashboard } = require('./src/classes/Dashboard');

const client = new AoiClient({
token: process.env.TOKEN,
prefix: "=",
intents: ["GuildVoiceStates", "Guilds", "GuildMessages", "DirectMessages", "MessageContent"],
events: ["onInteractionCreate", "onGuildJoin", "onGuildLeave", "onMessage", "onVoiceStateUpdate"],
guildOnly: true,
database: {
type: "aoi.db",
db: require("@akarui/aoi.db"),
dbType: "KeyValue",
tables: ["main"]
}
});

const DashConfig = {
secret: process.env.SECRET,
port: 3000, // Specify the port you want the dashboard to run on
url: 'http://localhost:3000', // Adjust to your Dashboard URL
navbar: [ // Customize your navbar items if needed
{ title: 'Dashboard', to: '/dash', icon: 'folder_managed' },
{ title: 'Commands', to: '/commands', icon: 'filter_list' },
{ title: 'Status', to: '/status', icon: 'checklist' },
{ title: 'Invite', to: '/invite', icon: 'share' }
]
};

const dashboard = new Dashboard(client, DashConfig);
Loading

0 comments on commit 32720a7

Please sign in to comment.