How to get it working
-
Clone the repo and get into the folder.
-
Create a certificate for the mumble connection and save them to
key.pem
andcert.pem
:openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem
-
Edit the environment file:
cp default.env .env vi .env
-
Add the Telegram Bot Token to the environment. Ask @BotFather for an API token and paste it after the = char.
-
Change the Server-URL and the Mumble Username to whatever you desire.
-
Close the file.
-
Run
npm install
to recieve the required packages.
Start the script
I ran best with loading index.js
into an interactive shell:
~/mumbleSniff $ node
> .load ./index.js
``
After that, you can import prior Telegram message ids with `fs.readFileSync("loggedInUsers.log", "utf-8").split("\n").forEach((i)=>{botUsers.push(i)});`. Then, check the botUsers array for new contents. (This is an [issue](https://github.com/jeyemwey/mumbleSniff/issues/1), and _$soon_, the application should do this by itself.)
# Contribute
If you want to, you can surely contribute to this project. Just send a PR!