aboutsummaryrefslogtreecommitdiff
path: root/macros/src/lib.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-10-16 13:48:56 +0200
committerMax Audron <audron@cocaine.farm>2021-10-16 13:48:56 +0200
commit7724231ac4511ae3b7c737b51166dbb9e8d8a62c (patch)
treecac73fdfbb80b7bac9f42fa389e9089bc633d0ce /macros/src/lib.rs
parentmake util functions world public (diff)
move bot initialization out of macro
Diffstat (limited to 'macros/src/lib.rs')
-rw-r--r--macros/src/lib.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 2ccd220..7c5ce19 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -175,15 +175,6 @@ pub fn catinator(tokens: TokenStream) -> TokenStream {
use irc::client::prelude::*;
use catinator::Bot;
- let config_path = env::var("CATINATOR_CONFIG").unwrap_or("config.toml".to_string());
- info!("starting bot with config file {}", config_path);
- let mut bot = Bot::new(&config_path).await.unwrap();
-
- if bot.config.server.sasl {
- info!("initializing sasl");
- bot.sasl_init().await.unwrap()
- }
-
#(#matchers_regex)*
info!("starting main event loop");
s='nohover-highlight'> When petting the cat it will reply with some random action. 2021-06-05feat: send actionR0flcopt3r-1/+9 2021-06-05release version 1.1.0Max Audron-2/+2 2021-06-05document proc macrosMax Audron-4/+97 2021-06-05add intensifyMax Audron-3/+27 2021-06-05add privmsg macroMax Audron-2/+40 2021-06-05fix jb remote urlsMax Audron-4/+4 2021-06-05remove egress gateway configMax Audron-10/+0 2021-06-05update tanka dependenciesMax Audron-8/+8 2021-06-05fix init container nameMax Audron-1/+1 2021-06-05fix tanka dependency pathMax Audron-8/+8 2021-06-05switch to https url for tanka util libMax Audron-2/+2 2021-06-05bump version to 1.0.2Max Audron-2/+2 2021-06-05add tanka ci configurationMax Audron-1/+1 2021-06-05ready tanka deploy for CIMax Audron-32/+69 2021-06-05remove tanka vendoringMax Audron-27651/+0 2021-05-26Release 1.0.1Max Audron-3/+3 2021-05-26fix log breaking once buffer fullMax Audron-2/+33 the log_msg function was poping the newest message and replacing it with the newest message, it should be poping the oldest messages. 2021-05-16add deployment stuffMax Audron-6/+27786 2021-05-15add container buildMax Audron-2/+35