Author Topic: slackchat has a new home!  (Read 12016 times)

0 Members and 3 Guests are viewing this topic.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: slackchat has a new home!
« Reply #15 on: September 27, 2005, 07:40:14 am »
I skimmed the readme, saw nothing about configuration. I did see that it requires curses though. Anyhow, great bot. Got it working now.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline mynameistmp

  • Full Member
  • ***
  • Posts: 111
  • Hi! I'm new here!
    • View Profile
Re: slackchat has a new home!
« Reply #16 on: September 27, 2005, 02:39:11 pm »
Quote
At this point, a fully functional linked/compiled binary will be located at slackchat/slackchat. A default configuration file can be found at slackchat/.slackchatrc. Simply edit the configuration file to your liking, copy it to your home directory, run the slackchat binary to begin chatting! The binary will not connect unless you adjust the configuration file appropriately.

slackchat README
;P

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: slackchat has a new home!
« Reply #17 on: September 27, 2005, 04:49:34 pm »
I know you meant the slackchat readme =p. I just skimmed and didn't read it.

Anyhow, I'm working on some suggestions for it. =)

SLACKCHAT SUGGESTIONS:
- Plugin system
- - Events raised in external files, such as
- - - UserInChannel
- - - UserJoins
- - - UserLeaves
- - - UserTalks
- - - UserEmote
- - - BnetError
- - - BnetInfo
- Internal commands
- - /quit - Quit the bot
- Verbosity
- - Current -v changes to -vv (very verbose)
- - New -v prints packet names, but not hexdumps.
- Commands:
- - !say
- - !yell (UCase say)
- - !extend (A d d s   s p a c e s)
- - !quit
- - !xmms
- - !math (!math 3+5 :: 8 ) EDIT: Ugh. Stupid 8.) smily. Heh.
- - Moderation
- - - !lock (channel lockdown)
- - - !kick
- - - !ban
- Configuration
- - If variables are missing, prompt for them (I may write a shellscript to do this?)
- - For the commands, triger variable?
- - Alternate hash path
- - Alternate verbyte
- - Alternate verhash (or does CheckRevision find this?)
- Access system (for use with commands)
- - Flags system? (All levels inherit the commands from below levels)
- - - M = Master (All commands)
- - - O = Operator (operator commands, kick, ban, etc)
- - - T = Talker (don't laugh at me!) (say, yell, extend)
- - - S = Safelisted (Immune to kick, ban, except from M, and always lock)
- - Numerical access?
- - - 100: see M
- - - 80: See O
- - - 50: See T
- - - 10: See S
- GTK front end
- - HTTP server (streaming HTML output, like JavaOp1)


Enjoy!

EDIT -
Note: All of these but the verbosity (and the plugin system itself) could be implemented through the plugin system. =p
« Last Edit: September 27, 2005, 06:39:40 pm by Joe[e2] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: slackchat has a new home!
« Reply #18 on: September 27, 2005, 09:28:53 pm »
Note to self: I love double-posting.

joe@JoeMomma:~/dev/sh $ ./slackchatconf.sh
Enter your battle.net server:
tassadar.battle.net
Enter your username:
x86
Enter your password:
haha no
Enter your CDKey:
haha no
Enter your home channel:
Op x86

Finished configuring slackchat. Put this in ~/.slackchatrc

nick=x86
password=haha no
server=tassadar.battle.net
cdkeyname=x86
home=Op x86
port=6112


Source:
#!/bin/sh

# slackchat configuration script
# author: joe[e2]

echo "Enter your battle.net server: "
read server < /dev/tty
echo "Enter your username: "
read username < /dev/tty
echo "Enter your password: "
read password < /dev/tty
echo "Enter your CDKey: "
read cdkey < /dev/tty
echo "Enter your home channel: "
read homechannel < /dev/tty

echo " "
echo "Finished configuring slackchat. Put this in ~/.slackchatrc"
echo " "
echo "nick="$username
echo "password="$password
echo "server="$server
echo "cdkeyname="$username
echo "home="$homechannel
echo "port=6112"


Be sure to chmod +x slackchatconf.sh (or whatever you name it). This doesn't print it to the file. Get unlazy and do it yourself. =)


EDIT -
Newby's being like microsoft again and discouraging people other than professionals to even attempt to write code. He wants me to make it write to the file but refuses to help me. Expect a "fixed" version from him by tomorrow morning, because hes godly like that.
« Last Edit: September 27, 2005, 09:59:37 pm by Joe[e2] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline mynameistmp

  • Full Member
  • ***
  • Posts: 111
  • Hi! I'm new here!
    • View Profile
Re: slackchat has a new home!
« Reply #19 on: September 28, 2005, 03:25:06 am »
Thanks, Joe. Most of those sound like good ideas. I don't think I'd ever implement /quit though. Have you tried ctrl+c ? IMO (and probably most unix users) ctrl+c is more standard and instinctive.

Also, it is open source. If you learn some C you could probably add a lot of that functionality on your own. I wouldn't mind giving you pointers on where to start with what and if you actually got the ball rolling you could maintain the project/website for all I care.

PS
Probably the closest thing to what you want for that script would be something like this:

Code: [Select]
echo "nick="$username >> ~/.slackchatrc
« Last Edit: September 28, 2005, 03:41:51 am by mynameistmp »

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: slackchat has a new home!
« Reply #20 on: September 28, 2005, 03:37:45 pm »
Code: [Select]
echo "nick="$username >> ~/.slackchatrc

You'd end up with 2 "nick=" lines, though.  You might need to pipe it through sed then back to the file.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: slackchat has a new home!
« Reply #21 on: September 28, 2005, 10:49:51 pm »
Although it's an ugly way of doing it, I asume his parser will load the second value (which is same as the first anyhow) as the nick. I'll see if I have time to look into it tomorrow after school.

But yeah, I guess Ctrl+C works too. I don't even know why I suggested that. =p

And what do you have to say about the plugin system? I thought that was a little bit out of the question, considering the slackchat principles (barebones, it works, nothing more), but I thought I'd suggest it.

Also, STAR. People might not want SEXP. =p
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: slackchat has a new home!
« Reply #22 on: September 28, 2005, 11:42:16 pm »
I actually wrote a script today to edit a line out of /etc/hosts.  It could also be applied to this:

cp /etc/hosts /etc/hosts.bak
sed "s/.*# added by fixhosts.sh//g" /etc/hosts.bak | uniq > /etc/hosts

That's not totally perfect, but it works for my purposes.  Grep would have worked better, but I had a mind blank.  The uniq is to remove duplicate entries/blank lines. 

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: slackchat has a new home!
« Reply #23 on: September 29, 2005, 12:58:03 am »
I actually wrote a script today to edit a line out of /etc/hosts.  It could also be applied to this:

cp /etc/hosts /etc/hosts.bak
sed "s/.*# added by fixhosts.sh//g" /etc/hosts.bak | uniq > /etc/hosts

That's not totally perfect, but it works for my purposes.  Grep would have worked better, but I had a mind blank.  The uniq is to remove duplicate entries/blank lines. 
Don't you mean my purpose ^^ <3.
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline mynameistmp

  • Full Member
  • ***
  • Posts: 111
  • Hi! I'm new here!
    • View Profile
Re: slackchat has a new home!
« Reply #24 on: September 30, 2005, 01:03:04 am »
Code: [Select]
echo "nick="$username >> ~/.slackchatrc

You'd end up with 2 "nick=" lines, though.  You might need to pipe it through sed then back to the file.

I think you mean he'd have a duplicate of every line if the file already existed. Otherwise I don't understand what you mean. He could do:

Code: [Select]
echo "nick="$username > ~/.slackchatrc
echo "whatever="$whatever >> ~/.slackchatrc

That should work fine.

Offline LordVader

  • Full Member
  • ***
  • Posts: 113
  • Knowledge is power.
    • View Profile
    • James Moss on the web!
Re: slackchat has a new home!
« Reply #25 on: December 15, 2007, 06:31:04 pm »
I know this topic is long dead now but I was just playing around slackchat compiles on debian etch, so i'm currently re-adding the d2 cdkey decode functions and am shifting the client over to login on d2 for some practice on linux in c/c++..
If this is something anyone would want when it's done, I can post it just ask.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: slackchat has a new home!
« Reply #26 on: December 15, 2007, 06:49:58 pm »
I'd like a copy of slackchat's source code. I'd be interested in updating stuff, cleaning stuff up, and somewhat maintaining a VC++ fork of it. I know it's not slackchat if it's build to Win32, but eh.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline topaz~

  • Full Member
  • ***
  • Posts: 292
    • View Profile
Re: slackchat has a new home!
« Reply #27 on: December 15, 2007, 07:36:17 pm »