-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parse raw message, support commands handlers
- Loading branch information
Showing
8 changed files
with
668 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import gleam/dynamic.{type Dynamic} | ||
import gleam/string | ||
import logging.{Debug, Error, Info} | ||
|
||
pub fn error(message: String) -> Nil { | ||
logging.log(Error, message) | ||
} | ||
|
||
pub fn debug(message: String) -> Nil { | ||
logging.log(Debug, message) | ||
} | ||
|
||
pub fn debug_d(message: Dynamic) -> Nil { | ||
logging.log(Debug, string.inspect(message)) | ||
} | ||
|
||
pub fn info(message: String) -> Nil { | ||
logging.log(Info, message) | ||
} | ||
|
||
pub fn info_d(message: Dynamic) -> Nil { | ||
logging.log(Info, string.inspect(message)) | ||
} |
Oops, something went wrong.