# HG changeset patch # User Mikael Berthe # Date 1354029964 -3600 # Node ID d9c00a9fe9d5c21fa5aea488449ea17c97e1af14 # Parent 2cefbe9f3ac6a5cca2c3f9204bc72c41c7d120ca Add notices before public release diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcabbot.lua --- a/mcabbot.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcabbot.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,3 +1,15 @@ + +-- McBot / mcabbot project +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- local home = os.getenv("HOME") package.path = package.path.. diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/dict.lua --- a/mcbot/cmds/dict.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/dict.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,3 +1,15 @@ + +-- This module is part of the McBot / mcabbot project +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- local dict = { ["desc"] = "Dictionnary" } diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/littre.lua --- a/mcbot/cmds/littre.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/littre.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,3 +1,15 @@ + +-- This module is part of the McBot / mcabbot project +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- local littre = { ["desc"] = "French Dictionnary Littré" } diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/mcabber_bts.lua --- a/mcbot/cmds/mcabber_bts.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/mcabber_bts.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,3 +1,15 @@ + +-- This module is part of the McBot / mcabbot project +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- require "libs.shcmd" diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/rfc.lua --- a/mcbot/cmds/rfc.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/rfc.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,7 +1,17 @@ #! /usr/bin/env lua --- RFC index parser --- Mikael BERTHE, 2010-04-17 +-- This module is part of the McBot / mcabbot project +-- RFC index parser +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- -- TXT index database, retrieved from -- diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/shortenurl.lua --- a/mcbot/cmds/shortenurl.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/shortenurl.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,10 +1,18 @@ --- This module is derivated from isbear's shortenurl function: --- http://hg.lilotux.net/mod-mcabber-lua/file/tip/examples/shortenurl.lua +-- This module is derivated from isbear's shortenurl function: +-- http://hg.lilotux.net/mod-mcabber-lua/file/tip/examples/shortenurl.lua +-- +-- Copyright (C) 2012 Myhailo Danylenko +-- Copyright (C) 2012 Mikael Berthe -- --- * Copyright (C) 2012 Myhailo Danylenko --- * Copyright (C) 2012 Mikael Berthe +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. -- +-- Please check the license in the COPYING file at the root of the tree. +-- + require "libs.shcmd" diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/tvcal.lua --- a/mcbot/cmds/tvcal.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/tvcal.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,7 +1,17 @@ #! /usr/bin/env lua --- Data extractor for http://www.pogdesign.co.uk/cat/ --- Mikael BERTHE, 2010-04-18 +-- This module is part of the McBot / mcabbot project +-- Data extractor for http://www.pogdesign.co.uk/cat/ +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- require "libs.shcmd" diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/wtf.lua --- a/mcbot/cmds/wtf.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/wtf.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,3 +1,16 @@ + +-- This module is part of the McBot / mcabbot project +-- What-The-F... module. +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- local wtfdbfile = "/home/mikael/.mcabber/lua/mcbot/wtfdb.txt" diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/cmds/xep.lua --- a/mcbot/cmds/xep.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/cmds/xep.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,3 +1,18 @@ + +-- This module is part of the McBot / mcabbot project +-- XEP module. +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- +-- Some parts were inspired by Matthew Wild (MattJ) code, see below. +-- require "libs.shcmd" diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/libs/shcmd.lua --- a/mcbot/libs/shcmd.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/libs/shcmd.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,3 +1,5 @@ + +-- shcmd(command): execute command in a shell and return stdout contents function shcmd (cmd) if not cmd or cmd == "" then return nil, "No command" end diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/mcbot_engine.lua --- a/mcbot/mcbot_engine.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/mcbot_engine.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,5 +1,17 @@ #! /usr/bin/env lua +-- McBot / mcabbot project +-- +-- Copyright (C) 2010-2012 Mikael Berthe +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or (at +-- your option) any later version. +-- +-- Please check the license in the COPYING file at the root of the tree. +-- + local commands = {} function trim(s) diff -r 2cefbe9f3ac6 -r d9c00a9fe9d5 mcbot/mcbot_shell.lua --- a/mcbot/mcbot_shell.lua Sun Nov 25 19:29:32 2012 +0100 +++ b/mcbot/mcbot_shell.lua Tue Nov 27 16:26:04 2012 +0100 @@ -1,5 +1,8 @@ #! /usr/bin/env lua +-- This is a small wrapper to call the mcabbot engine from a shell +-- (i.e. without mcabber). + require "mcbot_engine" local function mcbot_mainloop (BotName)