-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from Vishvaas06/main
Fufu - Added guild selection page + smth more i don't remember
- Loading branch information
Showing
18 changed files
with
4,349 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
node_modules/ | ||
node_modules/ | ||
.env | ||
dashboard-db | ||
database |
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,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); |
Oops, something went wrong.