Sign inSign up

esselfe/lunar-codybot

By esselfe

•Updated about 1 year ago

IRC bot written in C shipping with Lunar-Linux.

Image
Developer tools
0

441

esselfe/lunar-codybot repository overview

Codybot is an IRC bot written with the C programming language, providing users with fortune cookies, jokes, oneliner C compilation, shell access, text colorization, ascii art, special characters and weather per city. It was inspired by Candide on the Libera IRC network, a great bot written in Perl (see https://github.com/pragma-/pbot/⁠). The bot can connect to irc.libera.chat:6697 or any specified server and port; it defaults to port 6697 with SSL.

Source code @ https://github.com/esselfe/codybot⁠
The OS used is Lunar-Linux, official website: https://lunar-linux.org/⁠ & https://github.com/lunar-linux/⁠

The one tagged "small" (215MB download, 736MB installed) is a system without binutils, gcc, cmake, llvm, rustc and go, but has tcc as compiler instead.
The "full" one (2.38 download, 5.97GB installed) contains gcc, cmake, go, llvm, python, ruby, rustc and other stuff good for use with codybot.

Download with:

docker pull esselfe/lunar-codybot:small

Run with:

docker run -it -m 300m --cpu-quota=25000 --tmpfs /tmp:size=10M esselfe/lunar-codybot:small bash

Once in the container, run:

su -
tmux
su - user
cd codybot
echo 'a8b2c3d4e5f6your_www.weatherapi.com_key_here' > api.key
./api-fetcher &
scripts/logd.sh &
<ctrl+b><c>
su - codybot
cd codybot
./codybot -n your_bot_nick_here
id your_bot_NickServ_passwd_here
join #your_channel_here

Tag summary

Content type

Image

Digest

sha256:bc47c08ae…

Size

1 GB

Last updated

about 1 year ago

docker pull esselfe/lunar-codybot:base