From 4b5a362cf9cf2c7e611829bc7357c5c93a0a0672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Wed, 15 Jan 2020 15:03:42 +0100 Subject: [PATCH] update some typos and missing data --- README.md | 4 +++- contrib/etc/fbBot/config.yaml | 23 +++++++++++++++++++++++ main.go | 15 +++++++++++---- 3 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 contrib/etc/fbBot/config.yaml diff --git a/README.md b/README.md index 1ad1be8..4026592 100644 --- a/README.md +++ b/README.md @@ -40,5 +40,7 @@ comment_on_posts: - Merci - Yeah! - Vielen Dank! - +login: + email: example@example.com + passwd: thefbpassword ``` \ No newline at end of file diff --git a/contrib/etc/fbBot/config.yaml b/contrib/etc/fbBot/config.yaml new file mode 100644 index 0000000..6279d21 --- /dev/null +++ b/contrib/etc/fbBot/config.yaml @@ -0,0 +1,23 @@ +development_mode: true +cronjob_interval: "@every 5m" +no_run_on_start: false +http_useragent: "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" +webhooks: + live: + - https://discordapp.com/api/webhooks/... + - https://discordapp.com/api/webhooks/... + devel: + - https://discordapp.com/api/webhooks/... +comment_on_posts: + - TY + - ty! + - danke! + - I could use it! + - thx! + - Thank you! + - Merci + - Yeah! + - Vielen Dank! +login: + email: example@example.com + passwd: thefbpassword diff --git a/main.go b/main.go index 1acfc62..197d83a 100644 --- a/main.go +++ b/main.go @@ -32,14 +32,21 @@ func init() { development_mode: true cronjob_interval: "@every 5m" no_run_on_start: false -http_useragent: Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 - (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19 +http_useragent: "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" webhooks: +<<<<<<< HEAD live: - https://discordapp.com/api/webhooks/... - https://discordapp.com/api/webhooks/... devel: - https://discordapp.com/api/webhooks/... +======= + live: + - https://discordapp.com/api/webhooks/... + - https://discordapp.com/api/webhooks/... + devel: + - https://discordapp.com/api/webhooks/... +>>>>>>> 49d60f1... update some typos and missing data comment_on_posts: - TY - ty! @@ -51,8 +58,8 @@ comment_on_posts: - Yeah! - Vielen Dank! login: - email: example@example.com - passwd: thefbpassword + email: example@example.com + passwd: thefbpassword `) viper.ReadConfig(bytes.NewBuffer(yamlExample))