Mediabot

IRC bot since 2007. Modernized, modular, still alive.

WHAT IS MEDIABOT?

Undernet (ircu) Libera Epiknet Perl since 2007 console channel

mediabot_v3 has been tested on Undernet ircu server, Libera and Epiknet (but it may support other networks). The bot joins a console channel where it will notice its actions.

  • Read the README file to know how to deploy it.
  • Read the Wiki Documentation to know how to register it at first use.
  • Refer to the bot log file to know what is going on.

I enjoy working on long-running services, IRC bots, simple interfaces, and systems that remain readable over time.

Links

chatGPT v1.3.17
chatGPT (eggdrop 1.8.4+/tcllib 1.18+)
Dernière mise à jour 27/01/2026 · 6 KB
DansTonChat v1.14.7
Dans Ton Chat
Dernière mise à jour 15/12/2025 · 7 KB
ddg v1.0.7
Recherche DuckDuckGo (bêta)
Dernière mise à jour 09/01/2026 · 6 KB
meteo v1.3.2
Météo (wttr.in, HTTPS/SNI, emojis)
Dernière mise à jour 05/02/2026 · 6 KB
vdm v1.1.2
Vie De Merde (VDM)
Dernière mise à jour 08/02/2026 · 5 KB
youtube_search v1.2.1
Recherche YouTube (API v3)
Dernière mise à jour 21/10/2025 · 5 KB
teuk.org — a quiet server, still alive. IRC spirit, long-term projects, minimal noise.
What’s here
  • Mediabot (IRC bot since 2007)
  • Docs + forum + small tools
  • Downloads (Eggdrop TCL scripts)
Values
  • Keep it simple
  • Keep it stable
  • Keep it running
No tracking nonsense No JS frameworks Just the web

GitHub

Repo: teuk/mediabot_v3 · cache: Sat Feb 14 2026 17:31:02 GMT+0100 (heure normale d’Europe centrale) · clones (14d): 11 · uniques: 11

Recent commits
SHAMessageAuthorDate
7281a5a 🪄 Expecto UTF8um – fix .meteo UTF-8 + HTTP::Tiny teuk 2026-01-30
4a38f86 Revise README with current Mediabot updates teuk 2025-12-31
58997a7 Update README with refactoring notes and status teuk 2025-12-23
c3b02d9 ✨ Contextus Maxima: nearly all commands refactored to the new Context magic teuk 2025-12-23
43da77d 🪄 Auth & Quotes: restored true identities, fixed broken lookups and silenced the Unknown curse teuk 2025-12-09
3914920 fixes teuk 2025-09-06
b3a9f12 🧙‍♂️ Expecto Chanlistum: keep channelList untouched; SQL and flow confirmed—no spells broken. teuk 2025-09-06
019b0fd 🪄 Banished the has_level specter: use checkUserLevel() in addUser, keep auto-login charm intact — nothing else touched." teuk 2025-09-05
94fc9a7 🪄 Restore autologin in userInfo: call maybe_autologin with prefix; fallback hostmask match; keep original logic untouched teuk 2025-09-05
19d05e1 🪄 Banished deprecated getNickInfo: swapped in _nickinfo_from_msg, ensured auto-login charm holds, made lastCom use the channel cache (no getChannelById), and silenced the warning howlers. teuk 2025-09-05

README

Mediabot - https://teuk.org

Mediabotv3 is a perl Net::Async::IRC bot now tho I started it with Net::IRC which is now deprecated It is still a beta version after all these years but a release is coming up

WHAT IS MEDIABOT?

Mediabot is a Net::Async::IRC bot tested on Undernet ircu server, Libera and Epiknet (but it may supports other networks) The bot joins a console channel where it will notice its action

Go to the Wiki section and read Installation chapter to know how to deploy it.

The full documentation is in the Wiki section : https://github.com/teuk/mediabot_v3/wiki

mediabot_v3

I've been coding this bot for a while, and it's time to write documentation (about time)

This perl bot is using Net::Async::IRC and a MySQL/MariaDB backend. I tried to make things easier to install by running the configure script but sometimes it needs manual actions. Check the Installation chapter for hints.

I hope you'll have fun using mediabot :)

TeuK

Notes

Get the latest news on Mediabot here : https://teuk.org/forum

Installation

Creating a dedicated user

This is an installation example on Debian GNU/Linux 11 (bullseye)

Add a mediabot user :


sudo useradd -m -s /bin/bash mediabot

Now, give sudo rights to mediabot user and keep in mind that you MUST remove this file after the installation ! If you don't, you let an irc bot running with root privileges (trust me you don't want that).


echo 'mediabot ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/mediabot

Required packages installation

Install needed packages :


sudo apt install build-essential mariadb-server default-libmysqlclient-dev default-libmysqld-dev git curl

Bot installation

Now get the bot as mediabot user and run configure script :


sudo -iu mediabot

git clone https://github.com/teuk/mediabot_v3

cd mediabot_v3

The following script is supposed to do all the work for DB creation and Perl modules installation (but you may have to do manual actions sometimes) :


./configure

Running the bot

If everything's ok then test in foreground using your config file e.g :


./mediabot.pl --conf=mediabot.conf

[06/08/2022 06:31:37] Reading configuration file mediabot.conf
[06/08/2022 06:31:37] mediabot.conf loaded.
[06/08/2022 06:31:37] Getting current version from VERSION file
[06/08/2022 06:31:37] -> Mediabot devel version 3.0 (20220801_111934)
[06/08/2022 06:31:37] Checking latest version from github (https://raw.githubusercontent.com/teuk/mediabot_v3/master/VERSION)
[06/08/2022 06:31:37] -> Mediabot github devel version 3.0 (20220801_111934)
[06/08/2022 06:31:37] Mediabot is up to date
[06/08/2022 06:31:37] Mediabot v3.0dev-20220801_111934 started in foreground with debug level 0
[06/08/2022 06:31:37] Logged out all users
[06/08/2022 06:31:37] Picked irc.mediabot.rules from Network Mediabot_Rules
[06/08/2022 06:31:37] Initialize Hailo
[06/08/2022 06:31:37] Connection nick : mediabot
[06/08/2022 06:31:37] Trying to connect to irc.mediabot.rules:6667 (pass : none defined)
[06/08/2022 06:31:37] *** Looking up your hostname
[06/08/2022 06:31:37] *** Checking Ident
[06/08/2022 06:31:37] *** Found your hostname
[06/08/2022 06:31:37] *** Got ident response
[06/08/2022 06:31:37] on_login() Connected to irc server irc.mediabot.rules
[06/08/2022 06:31:37] Checking timers to set at startup
[06/08/2022 06:31:37] No timer to set at startup
[06/08/2022 06:31:37] on_login() Setting user mode +i
[06/08/2022 06:31:37] Trying to join #mediabot
[06/08/2022 06:31:37] No channel to auto join
[06/08/2022 06:31:37] -irc.mediabot.rules- Highest connection count: 2 (2 clients)
[06/08/2022 06:31:37] -irc.mediabot.rules- on 1 ca 1(4) ft 10(10) tr

And you should see the bot join on #mediabot console channel :


[06:30:25] * Now talking in #mediabot

[06:31:39] * Joins: mediabot (mediabot@mediabot.mediabot.rules)

To run the bot in daemon mode :


./mediabot.pl --conf=mediabot.conf --daemon

Always have a look at what is going on :


tail -40f mediabot.log

DON'T FORGET TO REMOVE SUDO RIGHTS, THIS IS IMPORTANT ! :


sudo rm -fv /etc/sudoers.d/mediabot

Once you did all that, register your bot and see the commands available in Wiki section : https://github.com/teuk/mediabot_v3/wiki