Discover Packages
github.com/athul/adguard-stat-bot
command
module
Version:
v0.0.0-...-efe17e1
Opens a new window with list of versions in this module.
Published: Oct 18, 2020
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Adguard Telegram Bot
This telegram bot sends you a message on Telegram with your daily statistics as an Ascii Graph and a Pie Chart with your Blocked Domains.
Prerequisites
Go
AdGuard Home Installed
Adguard Home's AGH_SESSION_TOKEN. You can get that via this way
Telegram Bot Token and Chat ID, for getting them refer Telegram Bot Documnetation
Save these as environment variables with keys, AGH_SESSION for for agh_session_token, BOT_TOKEN and CHAT_ID for telegram bot token and Telegram chat id respectively.
Using It
You can clone the repo and generate a binary by $ go build main.go.
Sample Output
Total DNS Queries: 5273
DNS Queries Blocked: 927
-----
Per cent of Queries Blocked: 17.58%
-----
DNS Query Graph :
888 ┼╭╮
799 ┤││ ╭╮ ╭
710 ┤││ ││ │
622 ┤│╰╮ ╭╯│ │
533 ┤│ │ ╭╮ │ │ │
444 ┤│ │ ││ │ │ │
355 ┤│ │ │╰╮ ╭╯ │ │
266 ┤│ │ │ │ │ │ │
178 ┤│ │╭╯ │ │ │ │
89 ┤│ ╰╯ │ │ │ │
0 ┼╯ ╰────────╯ ╰───╯
Number of DNS Queries
-----
Blocked Graph:
213 ┼ ╭
192 ┤ │
170 ┤ ╭╮ │
149 ┤╭╮ ╭╮ ││ │
128 ┤││ ││ ││ │
106 ┤││ ││ ││ │
85 ┤││ ╭╯│ ╭╯│ │
64 ┤││ │ │ │ │ │
43 ┤│╰╮ │ │ │ │ │
21 ┤│ │ │ │ ╭╯ │ │
0 ┼╯ ╰─╯ ╰────────╯ ╰───╯
Number of Blocked Queries
License
MIT
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.