Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
FreeNitori
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
q234rty
FreeNitori
Commits
4b52017d
Commit
4b52017d
authored
Jan 26, 2021
by
Ophestra
Browse files
Options
Downloads
Patches
Plain Diff
remove IsWindow function
parent
3238c415
Branches
develop
master
Tags
v1.6.6
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
nitori/state/global.go
+0
-2
0 additions, 2 deletions
nitori/state/global.go
nitori/state/window.go
+0
-7
0 additions, 7 deletions
nitori/state/window.go
server/discord/initialize.go
+3
-5
3 additions, 5 deletions
server/discord/initialize.go
with
3 additions
and
14 deletions
nitori/state/global.go
+
0
−
2
View file @
4b52017d
...
...
@@ -9,13 +9,11 @@ var (
revision
=
"unknown"
start
time
.
Time
InviteURL
string
window
bool
)
func
Version
()
string
{
return
version
}
func
Revision
()
string
{
return
revision
}
func
Uptime
()
time
.
Duration
{
return
time
.
Since
(
start
)
}
func
IsWindow
()
bool
{
return
window
}
// Channels
var
(
...
...
This diff is collapsed.
Click to expand it.
nitori/state/window.go
deleted
100644 → 0
+
0
−
7
View file @
3238c415
// +build windows
package
state
func
init
()
{
window
=
true
}
This diff is collapsed.
Click to expand it.
server/discord/initialize.go
+
3
−
5
View file @
4b52017d
...
...
@@ -17,12 +17,10 @@ var err error
func
Initialize
()
error
{
// Load plugins if not window
if
!
state
.
IsWindow
()
{
err
=
loadPlugins
()
if
err
!=
nil
{
return
err
}
}
// Setup some things
discordgo
.
Logger
=
log
.
DiscordGoLogger
...
...
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