Artbot 1.0
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Artbot 1.0

Started by MrBuitenhuizenJunior, 15 November, 2003, 02:24:59

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MrBuitenhuizenJunior

Hello,

I wanted a script that displays a txt art (ASCI drawings) when you type a keyword without a trigger and directly from a txt file.
After some copy paste work this is the result.
So al the script credits go to the pheople who really wrote the scripting lines (see the script for it)
Have fun with it!

[NL]MrBuitenhuizen

-------------------------
--Artbot 1.0 made by: [NL]MrBuitenhuizen
--Artbot has most of the scripting lines from > :
-->ShowInfo v1.0 by latinmusic == poweroperator 18/04/2003
--Based on TrickerBot 2 by ?Ptaczek?
--Based on a few lines of DirtyBot made by Dirty Finger)
-->Brutus 0.2. by Troubadour
-->you need to have the directory "art" in your txt directory (so it won't become a mess to search for the files ;) )
--have fun with it

BotName = "here your botname"
Files = {
["here the word that opens the txt file"] = "txt/art/here the file name.txt",


}
function Main()
end
function DataArrival(user, data)
if( strsub(data, 1, 1) == "<" ) then
s,e,msg = strfind(data, "%b<> ([ -z]*)")
for key, value in Files do
if( strfind( strlower(msg), key) ) then
txtToShow, x = gsub(value, "%b[]", user.sName)
SendToAll( data )
Show(user, TheFile)
return 1
end
end
end
end
function Show(user, TheFile)
readfrom(txtToShow, "r")
local message = ""
while 1 do
local line = read()
if line == nil then break
else
message = message..line.."\r\n"
end
end
SendToAll( BotName, message ) -- send bot's message
readfrom()
return 1;
end

----------------------------


Troubadour

Keep up the good work [NL]MrBuitenhuizen.

Greetz Troubadour
Regards,

Troubadour

** Guardian Forum **

hubaddy:   nederfun.no-ip.com

Janyn

hi
#3
can somebody put i timer in that script ?

Jabo

having a small prob......made a art folder in the scripts/txt folder...put my acsii txt in it but when i type in the command for it....the bot name appears but not the txt.  

Files = {
["here the word that opens the txt file"] = "txt/art/here the file name.txt",

i put this.....

Files = {
["*jimbo"] = "jimbo.txt",

is this correct

BlazeXxX

Hi There,

["!jimbo"] = "txt/art/jimbo.txt",

Try that way...
Put your Text file inside the art directory..

Something like:

txt/art/jimbo.txt

If the Art is not loaded up still, check the Script Editor's window.. There might be some error..

Thanx,
BlazeX

Jabo

alright....that fixed it, but my acsii art doesnt show up in the hub like it does in the txt file.  in the hub everything looks mashed together.....why?

BlazeXxX

OK.. That is not the script problem...

The DC++'s default font is Microsoft Seriff Sans 8pnt and your Notepad/WordPad has different font for it ?

So If you change the Word Editor you using to the font i mentioned.. It would show the smashed up image there as well.. So Do any drawings with that font.. and it will show properly..

Byez,
BlazeX

Jabo

hmmm.....changed my notepad and wordpad to the specified font, but it still showed up the same as the others did.  not unless im still doing something wrong.

BlazeXxX

Hmmm... If your ASCII Art was drawn using a different Font.. Such as Tahoma or something.. Then it won't be the same when u try with Microsoft seriff Sans..

Try Downloading or drawing ASCII arts with that fone (Seriff Sans) and use that ASCII art to see if the script is showing the right one..

MrBuitenhuizenJunior

Hello,

It is:

BotName = "[NL]Barman"
Files = {
["lol"] = "txt/art/lol.txt",


-Without a trigger like: !,#,+ etc..
(that's one "special" thing in this script, it works without trigger)

-keep in mind to have: "txt/art/lol.txt"

Klik this link to download the whole script with the art directory:

http://www.home.zonnet.nl/petroleummax/Artbot1.0.rar


[NL]MrBuitenhuizen

Jabo

anyone know a good place i can go to get more ascii art that will work with this.....?

MrBuitenhuizenJunior

Hi,

The drawings I use, I copy pasted from the mainchat in different hubs. They are already ready to use   :D
note: always begin the drawing with a empty rule so the real drawing rule will start under the botname.

A original ASCI drawing you have to modify so it will appear the right way in the mainchat.

Time for hub hopping  :P

See ya,

[NL]MrBuitenhuizen

plop

QuoteOriginally posted by MrBuitenhuizenJunior
note: always begin the drawing with a empty rule so the real drawing rule will start under the botname.
See ya,
[NL]MrBuitenhuizen
change this.
local message = ""
for this.
local message = "\r\n"
that adds 1 extra blanc line @ the start.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

MrBuitenhuizenJunior

Yep,

It's more easy to change the script one time then insert a empty rule in every .txt file, thnx. Plop.

[NL]MrBuitenhuizen

MrBuitenhuizenJunior

Download link updated, link: see message nr. 11
(first a empty rule now, before .txt messages)

[NL]MrBuitenhuizen

yepyepyep4711

Hi there,

just wanted to add that the next version of PtokaX will have support for text files (if things stay the way they are), so you'll be able to type e.g. !birthday, and the text "happy birthday" will appear in the main chat. And obviously instead of it it could be ASCII art.  :D
And that with as many files as you wish 8)

Ain't that great?

Cheers

MrBuitenhuizenJunior

Hello,

You're right, when I was "making" this script I already know that feature would be avaible in the new PtokaX.

But because a lot users are still on td4 or lower (like me), this is a very easy way to have .txt files shown at the mainchat.

[NL]MrBuitenhuizen

Troubadour

While waiting on the next version of ptokax (with the inbuilt txt show option), this is the best alternative!

Keep it up!

-Troubadour-
Regards,

Troubadour

** Guardian Forum **

hubaddy:   nederfun.no-ip.com

RiPOFF

Could someone mod the artbot to have these and
- Display art to the main chat
+asci ra         : Displays random art from
+asci rf       : Displays from random author (can be used even if only 1 author has a file named )
+asci rc           : Displays random art having in the art file's name
+asci : Displays from
 * Examples :
 +asci ra jadie         +asci rf brb smoking
 +asci rc xmas         +asci rosae bunny

 - List available art
+asci list authors: Lists all authors in the library
+asci list art    : Lists all art files in the library
+asci list both   : Lists all authors in the library and their respective art

 - Misc commands
+asci help       : Displays the help
+asci reload lib : Reloads the library (OP classes and above only)


automaticlly build a db like how ptokax has one or make it read from it cause i have a db and a load of art all tested for asciisizing here lemme upload it and whoever wants to make it for me that would be cool have it read and write to database :)

Link

[ES]latinmusic

QuoteOriginally posted by MrBuitenhuizenJunior You're right, when I was "making" this script I already know that feature would be avaible in the new PtokaX.
What are you talking about?, the best way to add ascii is an script and not the upcoming feature inside ptokax, text file are mostly implementent it to another kind of text file and not for art althougth kind be used, why is better i post the reasons later, now i have no time.

MrBuitenhuizenJunior

Hello,

I heared that the new PtokaX will have a ASCI feature (or something like that......) inside, that's all.
I'm looking forward to see the reasons why it's better to have it scripted.

[NL]MrBuitenhuizen

[ES]latinmusic

Yes ptokax will include support for text file.
Looking for reasons, here we go, personal opinion.
New ptokax will come with:
cmdprefix = !
inside ptokax.ini file
also will come support for txt file.
How works?:
You name your file for instance as: ascii.txt
then in main chat you type:
cmdprefixascii or better explain your command prefix followed by the name of the file:
!ascii
with the result of the file displayed in main chat.
------------------------------------------
Now suppose you have 10 ascii arts, you have two options to display the ascii art:
1.- Put all your art files inside the same file to display all at once or
2.- Make 10 different files with diferent names.
The second option will generated 10 news commands each one for display each file.txt
In my case i prefer only one command to display ramdomly each art file instead add one more command every time i add an ascii art. Catch it?.
-------------------------------------------
For me the text file support is nice to basic functions like display help, rules, netinfo, etc. In this way the size and resources taken by script will decrease because this, for more sofisticated features we still have the script support.

MrBuitenhuizenJunior

Artbot Version 2.0

Download/Info avaible ->here<-

MrBuitenhuizen

TiMeTrAVelleR

---====Settings are done in the ArtbotSettings cfg file inside Artbot-data

seems  to be missing this  file m8

its the error it gives

Syntax error: assertion failed!  settings file error
stack traceback:
   1:  function `assert' [C]
   2:  main of file `...r\Bureaublad\Trance Hub\scripts\Artbot2.0-A.lua' at line 20

Syntax error: assertion failed!  settings file error
stack traceback:
   1:  function `assert' [C]
   2:  main of file `Artbot2.0-A.lua' at line 20
   3:  function `dofile' [C]
   4:  main of file `...r\Bureaublad\Trance Hub\scripts\Artbot2.0-B.lua' at line 4

SMF spam blocked by CleanTalk