Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Remilia Scarlet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reviath
Remilia Scarlet
Commits
c2cc9148
Commit
c2cc9148
authored
May 14, 2021
by
Reviath
Browse files
Options
Downloads
Patches
Plain Diff
Update config struct.
parent
75016691
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config.go
+12
-12
12 additions, 12 deletions
config/config.go
handler/types.go
+3
-3
3 additions, 3 deletions
handler/types.go
with
15 additions
and
15 deletions
config/config.go
+
12
−
12
View file @
c2cc9148
...
...
@@ -23,18 +23,18 @@ var (
)
type
configStruct
struct
{
Token
string
`json:"Token"`
BotPrefix
string
`json:"BotPrefix"`
Presence
string
`json:"Presence"`
Owner
string
`json:"Owner"`
LoadInteractions
string
`json:"LoadInteractions"`
Database
string
`json:"Database"`
Host
string
`json:"Host"`
User
string
`json:"User"`
Password
string
`json:"Password"`
WebURL
string
`json:"WebURL"`
ClientID
string
`json:"ClientID"`
ClientSecret
string
`json:"ClientSecret"`
Token
string
`json:"Token"`
// Token from config file
BotPrefix
string
`json:"BotPrefix"`
// BotPrefix from config file
Presence
string
`json:"Presence"`
// Presence from config file
Owner
string
`json:"Owner"`
// Owner from config file
LoadInteractions
string
`json:"LoadInteractions"`
// LoadInteractions from config file
Database
string
`json:"Database"`
// Database from config file
Host
string
`json:"Host"`
// Host from config file
User
string
`json:"User"`
// User from config file
Password
string
`json:"Password"`
// Password from config file
WebURL
string
`json:"WebURL"`
// WebURL from config file
ClientID
string
`json:"ClientID"`
// ClientID from config file
ClientSecret
string
`json:"ClientSecret"`
// ClientSecret from config file
}
// ReadConfig reads config.json file, returns error
...
...
This diff is collapsed.
Click to expand it.
handler/types.go
+
3
−
3
View file @
c2cc9148
...
...
@@ -82,9 +82,9 @@ type Context struct {
}
const
(
CommandTypeEverywhere
CommandType
=
iota
CommandTypeEverywhere
CommandType
=
iota
// CommandTypeEverywhere : command can be used on everywhere (DMs + Guilds)
CommandTypeGuild
CommandTypeGuild
// CommandTypeGuild : command can be only used on guilds (not DMs)
CommandTypePrivate
CommandTypePrivate
// CommandTypePrivate : private command type
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment