Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
WikiMathBot
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Øystein Kristoffer Tveit
WikiMathBot
Commits
82cd734e
Commit
82cd734e
authored
4 years ago
by
Øystein Kristoffer Tveit
Browse files
Options
Downloads
Patches
Plain Diff
Move logger to separate file
parent
80f479ec
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Bot/Logging.fs
+8
-0
8 additions, 0 deletions
src/Bot/Logging.fs
src/Bot/WebsiteCheckLoop.fs
+1
-4
1 addition, 4 deletions
src/Bot/WebsiteCheckLoop.fs
with
9 additions
and
4 deletions
src/Bot/Logging.fs
0 → 100644
+
8
−
0
View file @
82cd734e
namespace
Bot
module
Logging
=
open
System
let
log
message
=
printfn
"[%A] [Info] %s"
DateTime
.
Now
message
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Bot/WebsiteCheckLoop.fs
+
1
−
4
View file @
82cd734e
...
@@ -2,13 +2,10 @@ namespace Bot
...
@@ -2,13 +2,10 @@ namespace Bot
module
WebsiteCheckLoop
=
module
WebsiteCheckLoop
=
open
System
open
Logging
open
DSharpPlus
open
DSharpPlus
open
Channels
open
Channels
let
private
log
message
=
printfn
"[%A] [Info] %s"
DateTime
.
Now
message
let
private
sendToChannelWith
(
client
:
DiscordClient
)
message
id
=
let
private
sendToChannelWith
(
client
:
DiscordClient
)
message
id
=
log
<|
sprintf
"Sending message to channel: %A"
id
log
<|
sprintf
"Sending message to channel: %A"
id
id
id
...
...
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