Skip to content

Commit

Permalink
refactor(src): add src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Taelar committed Jul 3, 2023
1 parent adf3696 commit cf3fbc6
Show file tree
Hide file tree
Showing 35 changed files with 309 additions and 1,820 deletions.
2 changes: 1 addition & 1 deletion deploy-commands.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SlashCommandBuilder } from '@discordjs/builders'
import { REST } from '@discordjs/rest'
import { Routes } from 'discord-api-types/v9'
import { help, prune } from './commands'
import { help, prune } from './src/commands'

const { CLIENT_ID, GUILD_ID, TOKEN } = process.env

Expand Down
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Client, Intents } from 'discord.js'
import { onMessage } from './events/onMessage'
import { onCommand } from './events/onCommand'
import { BotState } from './model/BotState'
import { onMessage } from './src/events/onMessage'
import { onCommand } from './src/events/onCommand'
import { BotState } from './src/model/BotState'

// Init

Expand Down Expand Up @@ -43,6 +43,6 @@ client.on('interactionCreate', (interaction) => {
onCommand(interaction)
})

console.log('token start: ' + process.env.TOKEN?.slice(0, 5))
console.log('token start: ' + process.env.TOKEN?.slice(0, 2))

client.login(process.env.TOKEN)
Loading

0 comments on commit cf3fbc6

Please sign in to comment.