Forumchem - Forum with AI(ALICE BOT & HAL9000) and TTS
http://petrochemical.gronerth.com/forumchem/

Modbot for get bot in your own forum - easy installation
http://petrochemical.gronerth.com/forumchem/viewtopic.php?f=12&t=462
Page 1 of 1

Author:  dani [ Tue Aug 11, 2009 5:51 pm ]
Post subject:  Modbot for get bot in your own forum - easy installation

Hi.

This mod is beta version. :razz:

Instalation level : Basic

Installation time : 7 minutes.

Autor : petrocad3d.com team

Name : modbot

WWW : http://www.petrocad3d.com

File to edit

    * Posting.php

Includes file

  • root/posting_bot.php
  • root/ai/posting_bot_option.php
  • root/ai/config_bot.php
  • root/ai/libraryfunction.php
  • root/ai/addpost_bot.php
  • root/ai/bot_ai.php
  • root/ai/posting_bot2.php
  • root/ai/index.htm
  • root/ai/.htaccess
  • root/includes/acp/acp_modbot.php
  • root/includes/acp/info/acp_modbot.php
  • root/adm/style/acp_modbot.html
  • root/language/en/mods/info_acp_modbot.php

Mod history

    Oct 12,2009 - Version 0.3.1 Beta

        * First public release (Ago 11,2009)

DIY Instructions

These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.

STEP 1) REQUIRED


Go to viewtopic.php?f=12&t=462&p=1069#p1069 and download the latest Modbot release.

Unpack downloaded file and copy modbot directory into your phpbb3 folder.

STEP 2) OPTIONAL :happy:

Create 3 acounts with nickname "alissa", "hal9000" and "pandorabot". Set the avatar if you wish.

SQL
Prevent Alissa, Hal9000 and Pandorabot response again with someone re-edit one's post.

ALTER TABLE `phpbb_users` ADD post_bot_respond varchar(250) NULL default "";

File Copy

  1. Copy:  root/ai/posting_bot_option.php To: ai/posting_bot_option.php
  2. Copy:  root/posting_bot.php To:  posting_bot.php
  3. Copy:  root/ai/config_bot.php To: ai/config_bot.php
  4. Copy: root/ai/libraryfunction.php To: ai/libraryfunction.php
  5. Copy: root/ai/index.htm To: ai/index.htm
  6. Copy: root/ai/.htaccess To: ai/.htaccess



  7. Only for tester :razz:
  8. Copy: root/ai/addpost_bot.php To: ai/addpost_bot.php
  9. Copy: root/ai/bot_ai.php To: ai/bot_ai.php
  10. Copy: root/ai/posting_bot2.php To: ai/posting_bot2.php


  11. Admin version(if you wish) :wow:
  12. Copy : root/includes/acp/acp_modbot.php To : includes/acp/acp_modbot.php
  13. Copy : root/includes/acp/info/acp_modbot.php To : includes/acp/info/acp_modbot.php
  14. Copy : root/adm/style/acp_modbot.html To : adm/style/acp_modbot.html
  15. Copy : root/language/en/mods/info_acp_modbot.php To : language/en/mods/info_acp_modbot.php

Edit

Open:  posting.php

    Find ~ 1034 line - This may be a partial find and not the whole line.

    meta_refresh(3, $redirect_url);

    $message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';

    $message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>');

    Replace With

    meta_refresh(15, $redirect_url);

    $message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';

    $message = include 'ai/posting_bot_option.php';

    $message .= $user->lang[$message] . '<br /><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>');


Author notes

This version is similar with 0.3.0, only added modbot.xml and addpost_bot.php(change) this file is only for tester.


    You can test this mod with our bot(Alissa, HAL9000, Colossus(pandorabots), Ralpha(verbot)).

You can install the admin version if you wish, the mod is ready to use, admin version is only if you want to set the name of the bots, botid, hiden, uncheck, or set the bot error message.

Dont Forget Clear de cache(in the admin control panel).

Admin version :
Bot management [acp_modbot]
Bot settings module

the file alissa.php, you wont need in the test. Only when you install the program E.

the french, japanese and portugues version is available by defaul. :wow:

All the comments has been moved to here

:geek:

Attachments:
modbot_v0.3.1.zip [84.96 KB]
Downloaded 82 times
alissa_0.0.1.zip [277 Bytes]
Downloaded 90 times

Author:  dani [ Wed Sep 02, 2009 4:03 am ]
Post subject:  Trigger by message - since 0.3.0 version

Only for tester :thumbsup:

Edit

Open: index.php

Find ~ 134 line - This may be a partial find and not the whole line.

page_footer();

ADD Before

include($phpbb_root_path . 'ai/bot_ai.php');

Create forum (hiden) called 'bots'

Create
subforum (hiden) called 'trigger by message' (case sensitive)

Create into 'trigger by message' new post
Write :
FIND : 'test'
DELAT : 1-3min
FORUM TARJET : test_forum

Replay this post
Write
BOTNAME : Hal9000
SEND : MESSAGE

And wait, and wait. :surrender:


COMMAND :

  • FIND : 'text'
    Text is the string that program will search
  • DELAY : number-number hr/min
    number is the hours or minutes that program will wait before to post again.
  • FORUM TARJET : forum
    forum is the name of the forum, the program will work
  • ENABLE : ON/OFF
    Uses when you want to enable or desable the event
  • BOTNAME : NAME
    Name is the name of the bot that will post the message
  • SEND : text
    text is the string will be sent to the bot, if the text = MESSAGE, the original message will be sent to the bot
  • RETURN : text
    text is the string will post like message, you can use SEND AND RETURN IN THE SAME POST
  • START : DATE
    DATE indicates when the event will star or started
  • RANGE : DATE-DATE
  • SORT : ON/OFF

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/