Author Topic: [TUT] How to output every message in-game on IRC on any channel on any server  (Read 1476 times)

Offline Relerx

  • Community Developer
  • *****
  • Posts: 548
  • Registered: 16/06/2016
    YearsYearsYearsYearsYearsYearsYears
  • Group: SAPD
  • Ingame: CON-Relerx|48
Starting off, I made a simple bot that uses your MTA console.log file which adds and updates once an input/output is sent

One of my friends needed this kind of system which allowed him to send all messages he received with a small filter on them - so I made one and decided to open it to the public.

Features
-> Output on any channel to which you have access to
-> (downside) Works ONLY when you start it
-> (can be downside) Local, runs on YOUR PC!
-> Has a small "filter" list to avoid messages containing anything like: "fuck", "(FMSG)", customize it to your wish!

How to use it?

1. Install Python 3 (any version of Python 3 should work), from https://www.python.org/
2. Download this: http://www.mediafire.com/file/z9omg2blpao5266/logs%282%29.zip
3. Go to your MTA Directory -> MTA -> logs, extract it
4. Set the settings in irc.py as needed!
5. If you use windows, use start.bat and go! If you use Linux, use: python irc.py on the command line

Enjoy! Please ensure that you are connected in-game, otherwise, it can bug.

And do NOT restart the bot every 10 seconds etc, you may risk yourself getting banned for spamming connections.

Enjoy!
« Last Edit: 23 10, 2022, 12:19:18 am by iFrank »