First commit
This commit is contained in:
19
config/config.go
Normal file
19
config/config.go
Normal file
@ -0,0 +1,19 @@
|
||||
package config
|
||||
|
||||
// Config holds Matrix and OpenAI credentials for the GPT bot.
|
||||
type Config struct {
|
||||
Homeserver string
|
||||
BotUserID string
|
||||
AccessToken string
|
||||
OpenAIKey string
|
||||
}
|
||||
|
||||
// Load returns hardcoded credentials; replace with your own values.
|
||||
func Load() *Config {
|
||||
return &Config{
|
||||
Homeserver: "",
|
||||
BotUserID: "", // replace with your bot's user ID
|
||||
AccessToken: "", // replace with bot access token
|
||||
OpenAIKey: "", // replace with your OpenAI key
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user