Initial commit
This commit is contained in:
commit
86453daede
5 changed files with 222 additions and 0 deletions
32
Sources/Bot.swift
Normal file
32
Sources/Bot.swift
Normal file
|
@ -0,0 +1,32 @@
|
|||
import DDBKit
|
||||
|
||||
@main
|
||||
|
||||
struct FjAdminBot: DiscordBotApp {
|
||||
init() async {
|
||||
let httpClient = HTTPClient()
|
||||
bot = await BotGatewayManager(
|
||||
eventLoopGroup: httpClient.eventLoopGroup,
|
||||
httpClient: httpClient,
|
||||
token: "MTMxMTY2NTg1OTQ3NTAxMzY1Mg.GgVETf.KbMqaqPhOR3JMNT-GiWT3qwiK862cbbjZm9RTc",
|
||||
largeThreshold: 250,
|
||||
presence: .init(activities: [], status: .online, afk: false),
|
||||
intents: [.messageContent, .guildMessages]
|
||||
)
|
||||
cache = await .init(
|
||||
gatewayManager: bot,
|
||||
intents: .all,
|
||||
requestAllMembers: .enabledWithPresences,
|
||||
messageCachingPolicy: .saveEditHistoryAndDeleted
|
||||
)
|
||||
}
|
||||
|
||||
var body: [any BotScene] {
|
||||
ReadyEvent { ready in
|
||||
print("hi mom")
|
||||
}
|
||||
}
|
||||
|
||||
var bot: Bot
|
||||
var cache: Cache
|
||||
}
|
0
Sources/Commands/RepoManagement.swift
Normal file
0
Sources/Commands/RepoManagement.swift
Normal file
Loading…
Add table
Add a link
Reference in a new issue