This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

web 2 irc ?

Old posts that have not been replied to for several years.
Locked
M
MrK

web 2 irc ?

Post by MrK »

Hi

I have a web site that ppl upload small txt files to and im after a script for a eggdrop to announce the file that has been uploaded in to irc

the person uploads the file to the web site then the bot tells the channel the file was uploaded.. ( textfile.txt_was.upload.to.www.... etc )

the site is passworded so the script will need to log in then check the dir / web site.

is there any scripts available for this, i have searched a few script sites and found nothing or can somebody please tell me the commands i need to create this script

thanks :D
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

MrK wrote:the site is passworded so the script will need to log in then check the dir / web site.
In what way is it "passworded"? Have you considered using the http package? Or why not make the web server notify your bot?
M
MrK

Post by MrK »

ill check on how the pass thing works ( not 100% sure ) , but it just requires a email and password to login ..


which would be easiest ? the bot 2 web ( prefered ) or the web 2 bot

thanks :)
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

MrK wrote:which would be easiest ? the bot 2 web ( prefered ) or the web 2 bot
Both solutions depend on what's running on the webserver. What kind of password protection, and what scripting language the upload thing is written in. I think a solution where the webserver tells the bot about new files will be better because then you won't have to hammer the site checking for changes.
M
MrK

Post by MrK »

the password part ill need to find out , admin away atm..

the upload script is in php and i only need to check the site for updates say every 5 or 10 minutes not a contined check so will not be to bad.

it real just needs to check a list of links that are generated on the webpage or the dir that the files are uploaded to.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

try this script...
http://tcl.undernet.nu/bsay.txt

To make it work you need to add a user in your bot that the webserver can use to log in and .say

I suggest giving this user a custom unused flag (A-Z (uppercase)) and rebinding the .say command to include that flag. eg:

bind dcc oP|oP say *dcc:say

I suck at php, but the script will at least give you something to start with :)
M
MrK

Post by MrK »

thanks for the help m8 :) - will have a look and give it a go


cheers :D
Locked