Absurd Minds

More than 100 years without a motto.
It is currently 19 Jan 2018 09:37

All times are UTC-04:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 11 Aug 2016 17:23 
Offline
User avatar

Joined: 24 Feb 2015 09:39
Posts: 1064
So, this thing has been consuming lots of my time the past few weeks, so that is where I probably was if you were wondering.

https://github.com/Nickster258/nick_bot

In total I have written over 700 lines for this project and I plan on doing much more with it and eventually restructuring it to a proper object oriented program.

At the moment I am still assembling basic stuff but I have so far assembled cool functions such as interfacing with the Slack API in posting messages and a cool URL shortener function with the bitly API.

_________________
Image


Top
   
PostPosted: 11 Aug 2016 17:47 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8179
Dang I have no idea what it is, but I'm impressed that you could do it.

_________________
[AM] Amaroq
Server list
Donate


Top
   
PostPosted: 11 Aug 2016 18:09 
Offline
User avatar

Joined: 25 Mar 2010 19:21
Posts: 4916
I Really doubt most people will know anything he just said. I Suggest you dumb it down if you want anyone to have any sense of what you just said.

_________________
I'm so official, like a dealer with a pistol or referee with a whistle.


Top
   
PostPosted: 11 Aug 2016 18:29 
Offline
User avatar

Joined: 24 Feb 2015 09:39
Posts: 1064
Essentially it is an IRC bot that listens to specific trigger events that, once called, does unique things. From sending a message to an entirely new service, or just returning a shortened URL of what was pasted.

I made a public IRC library for this, IRCBot.java, that does lots of this for you. You can make an IRCBot rather easily and read/write what you wish through it.

_________________
Image


Top
   
PostPosted: 11 Aug 2016 20:12 
Offline
User avatar

Joined: 25 Mar 2010 19:21
Posts: 4916
thats cool!

_________________
I'm so official, like a dealer with a pistol or referee with a whistle.


Top
   
PostPosted: 11 Aug 2016 21:08 
Offline
User avatar

Joined: 24 Feb 2015 09:39
Posts: 1064
I just added a function that searched Urban Dictionary for terms and returned either the definition, or "No results found".

https://github.com/Nickster258/nick_bot ... .java#L294

_________________
Image


Top
   
PostPosted: 11 Aug 2016 21:23 
Offline
User avatar

Joined: 24 Feb 2015 09:39
Posts: 1064
Found this out of the madness that ensued after publishing changes:

http://www.urbandictionary.com/define.php?term=bush

_________________
Image


Top
   
PostPosted: 12 Aug 2016 23:41 
Offline
User avatar

Joined: 24 Feb 2015 09:39
Posts: 1064
Learned multithreading and added timeout.java.

This is used along side users.java and this method for anti-spam measures.

Currently only 5 requests per minute.

_________________
Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC-04:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited