Paul Sutton

Chat

As there are people who are probably stuck at home. due to CoronaVirus. I am sharing some videos from last years Emacsconf and Libreplanet

Libreplanet 2020 took place on the 14th / 15th March and the videos will be published in due course. Plans for the next EmacsConf are underway. Any help, speakers will be appreciated.

If you are able to login to IRC then you can join #emacsconf and #libreplanet respectivley to discuss further.

Everyone is welcome on IRC, however please be patient when asking questions, as not everyone is around, someone will respond in due course.

#virtual, #conference, #emacsconf, #emacs, #libreplanet, #freesoftware, #talks, #chat, #q&a,#videos,#help,#volunteers.


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

IRC bot development

I have been working on some more projects around IRC chat bots. I decided to try and integrate a Magic 8 ball project so that an IRC bot would give a random response, chosen from a pre- defined set within the code (can be changed) when the bot is sent an instruction in my IRC channel.

ircbot

This project builds on some of the code covered in my Minecraft Pi bot project. Mostly the base code from the Linux Voice article.

The code is currently being tested in ##zleap on Freenode.

At the moment magic8 can be sent the following commands:-

  • !umame – returns output of uname -a
  • !uptime – returms system uptime
  • !help – displays list of options
  • !botexit – bot quits irc channel,
  • !magic8 – returns random text
  • !ping – returns pong (used to check the bot is working, left in for legacy
  • !web – returns my own web address (this website) but can be changed
  • !sdtj – returns web address for the South Devon Tech Jam

Notes

uname and uptime are Linux / Unix commands, it is therefore assumed you are running on a GNU / Linux system.

I have created a welcome message from the bot, so when it joins it says hello, also says goodbye if !botexit is sent.

Todo

  • Make the code Python 3
  • Add more options
  • Keep it tidy

Help and Contribute

Feel free to fork the project and make improvements and further customization. Perhaps discuss further on IRC or via social media e.g Mastodon.

Resources

#python, #development, #irc, #application, #bot, #magic8, #network,#sockets #irc, #project,#github, #chat, #responses, #magic8