{"id":20757924,"url":"https://github.com/bdrewery/pyborg","last_synced_at":"2025-04-29T23:48:55.535Z","repository":{"id":913052,"uuid":"673720","full_name":"bdrewery/PyBorg","owner":"bdrewery","description":"Fork of PyBorg AI bot for cutie578 on EFNet","archived":false,"fork":false,"pushed_at":"2024-03-23T17:06:42.000Z","size":268,"stargazers_count":44,"open_issues_count":11,"forks_count":31,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-29T23:48:50.797Z","etag":null,"topics":["bot","irc","markov-chain","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdrewery.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-05-18T19:15:18.000Z","updated_at":"2024-03-28T09:14:42.000Z","dependencies_parsed_at":"2024-11-17T09:47:23.506Z","dependency_job_id":"544513f7-2b85-42f5-bcd4-0358bd7cda1d","html_url":"https://github.com/bdrewery/PyBorg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdrewery%2FPyBorg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdrewery%2FPyBorg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdrewery%2FPyBorg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdrewery%2FPyBorg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdrewery","download_url":"https://codeload.github.com/bdrewery/PyBorg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251602602,"owners_count":21615957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","irc","markov-chain","python"],"created_at":"2024-11-17T09:47:02.462Z","updated_at":"2025-04-29T23:48:55.515Z","avatar_url":"https://github.com/bdrewery.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#\n# PyBorg: The python AI bot.\n#\n# Copyright (c) 2000, 2006 Tom Morton, Sébastien Dailly\n#\n# This bot was inspired by the PerlBorg, by Eric Bock.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n#\n# Tom Morton \u003ctom@moretom.net\u003e\n#\n\n\n#############################################################################\n\nThis version has been customized so all data and configuration is stored into data/\nTo startup just run './start.sh'\n\n#############################################################################\n\n\nPyBorg 1.1.0 needs Python 1.5.2 or greater (www.python.org).\nThe 'irclib' and 'ircbot' modules in the PyBorg archive were written by Joel\nRosdahl (www.rosdahl.net). PyBorg has been tested on linux, windows and BSD\nand /may/ work on other Python platforms.\n\n'python pyborg-linein.py' to chat with the bot offline.\n'python pyborg-irc.py' for irc mode.\n\nUse convert2.py to convert pyborg olders dictionaries to pyborg 1.1.0\nformat. The dictionary is stored in lines.dat and words.dat and saved in a zip\nfile.\n\nOrders :\n--------\n\nAll the orders start with one “!”. According to whether the bot is connected to\nIRC or not, the list of the order is not the same one. Here the list of the\norders which are usable all the time:\n\n    * !help: post the whole of the orders available\n    * !version: post the version of the bot\n    * !quit: leave the program\n    * !save: safeguard the dictionary and the files of configuration\n\n    * !words: post the number of words and sentences known\n    * !known [Word]: post if the word [Word] is known and numbers it sentences\n       in which it appears\n\n    * !unlearn [Word]: erase the word of the dictionary\n    * !purge: Post the number of words which appear only in one context\n    * !purge [a number]: erase [a number] words of the dictionary, among the\n       least frequent words\n    * !replace [word1] [word2]: replace all the events of [word1] by [word2]\n    * !censor [Word]: censure the word [Word]\n    * !uncensor [Word]: withdraw [Word] list of censure\n\n    * !learning [on|off]: authorize or not the training of new words\n    * !limit [a number]: limit the number of words known with [a number]\n       (by defect 6000)\n\n    * !alias: List all alias what exists\n    * !alias [alias]: List all the words which refer to {alias]\n    * !alias [alias] [word1] [wordN]: create alias which replaces all the events\n       of [Word] by [alias]\n\nThe following orders are available only on IRC:\n\n    * !nick [nick]: change nick the bot\n    * !shutup: prevent the bot from speaking on the channels\n    * !wakeup: cancel one! shutup\n    * !replyrate [a number]: probability that the bot answers a message diffused\n       on the channel\n    * !talk [nick] [message]: send the message [message] with [nick] on behalf\n       of the bot\n\n    * !join [channel]: connect the bot to [channel]\n    * !leaves [channel]: fact of leaving the channel [channel]\n    * !chans: list the channels where the bot is connected\n\n    * !ignore of [nick]: ignore nick\n    * !unignore [nick]: withdraw nick list of the people to be ignored\n\n    * !owner password: allows to be added to the list of the owners (the\n       password is defined in the file pyborg-irc.cfg)\n\nConfiguration files :\n---------------------\n\nEdit pyborg.cfg, and pyborg-irc.cfg (created the first time you run pyborg-irc)\nto configure the bot.\n\npyborg.cfg:\n\n    * num_aliases: variable of the program, not to change, indicates the number\n      of known alias\n    * num_contexts: variable of the program, not to change, indicates the number\n      of known sentences\n    * ignore_list: indicate the list of words which are not relevant in a\n      sentence (ex: [“one”, “a”, “of”, “some”]\n    * max_words: maximum limit with the number of known words, can be changed\n      thanks to the order !limit\n    * learning: indicate if the bot must learn or not. Can be changed thanks to\n      the order !learning\n    * aliases: the list of alias. Can be changed with the order! alias\n    * censored: the list of the censured words. Can be changed with the order\n      !censor !uncensor\n    * num_words: variable of the program, not to change, indicates the number of\n      known words\n    * no_save: if True, the program will not do any saves on disk.\n\npyborg-irc.cfg:\n\n    * owners: a list of owners of the bot\n    * reply_chance: percentage of chance that the bot answers a message diffused\n      on the channel. Can be changed with the order! replyrate (see the order!\n      replyrate)\n    * reply_to_ignored: 0 or 1 make it possible to answer or not the people who\n      in the list of are ignored\n    * chans: a list channels one where the bot must be connected (is not\n      modified by the order !join)\n    * servers: a list of waiters where the bot must be connected\n    * ignorelist: a list of people which the bot will not answer (see the order!\n      be unaware of! unignore)\n    * quit_message: message of exit to the disconnection\n    * password: password for the order! owner\n    * !speakin: 0 or 1 indicate if the bot must chatter on the channels, can be\n      changed with the orders! shutup! wakeup\n\nThe aliases and censored words are regular expression. This mean that you can\nset an aliases like '~hello': ['hell?o'] and each time pyborg will read 'hello'\nor 'helo', it will replace the world by hello. The '~' as now role for now, but\nsays to pyborg that the word is an alias and can be used in the future.\n\nNOTE: Terminate the borg with the !quit command or CTRL-C in the\nconsole. Do not simply close the console window or the dictionary\nwill not be saved.\n\n-- \nTom Morton \u003ctom@moretom.net\u003e\nSébastien Dailly \u003cseb.dailly@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdrewery%2Fpyborg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdrewery%2Fpyborg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdrewery%2Fpyborg/lists"}