eggdrop

Keep mysql connection open

﹥>﹥吖頭↗ 提交于 2020-01-04 12:07:24
问题 I'm making a eggdrop tcl script to write activity of several public IRC channels to a database (over time this will be 10 to 15 channels I think). I have two options how to handle the database connection in mind. An user says something -> Open a mysql connection to the database -> insert information about what the user said -> close the connection Start the bot -> Open a mysql connection to the database -> Insert information when there is channel activity -> Wait for more information etc. I

Issues with TCL encoding on Eggdrop

最后都变了- 提交于 2019-12-11 07:12:38
问题 I have installed Eggdrop on a new Debian server with TCL8.5 and the latest version of eggdrop. Unfortunately there are issues with my script and the handling of special characters as é, J'aime, etc. An example might be best to show you: 13:41 <@me> test 13:41 <@me> !tr nl This is a test 13:41 < bot> Dit is een test 13:41 <@me> !tr fr I am a stranger 13:41 < bot> Je suis un étranger 13:41 <@me> !tr fr I love you 13:42 < bot> Je t'aime I have added the line that says convert-to utf-8 and