Author Topic: New Post Bot  (Read 32889 times)

0 Members and 2 Guests are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: New Post Bot
« Reply #30 on: August 02, 2013, 01:50:11 pm »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: New Post Bot
« Reply #31 on: August 02, 2013, 02:24:38 pm »
Wait, that means it wasn't an IRC bot back then? Because running an IRC bot on the server is still possible :) But i heard that that checking server-side somehow nommed tons of CPU ???
It was an IRC bot, but it was hosted on the same server as Omni. The problem is that the SMF mod that sent the new post notification to the IRC bot required that both the bot and OmnomIRC are hosted with the forums.

I wonder if it would be possible to send such data over two servers?

Oh and IIRC, another issue with such DB access is that if IRC was down or something else prevented the notification from being sent, it didn't let you post, so if that was revived, it would need a timeout feature implemented (so if after 10 seconds, it didn't respond, then it posts anyway without the New post warning.
« Last Edit: August 02, 2013, 02:25:56 pm by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: New Post Bot
« Reply #32 on: August 02, 2013, 02:28:07 pm »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: New Post Bot
« Reply #33 on: August 02, 2013, 02:33:37 pm »
Just one thing, though: If the direct DB access bot is ever revived, make sure to not forget to disable notifications for the staff and private boards (except game walkthroughs), because I remember at first when some private thread appeared in OmnomIRC. It was a little akward >.<. Imagine, for example, if the entire Omni admin team got under NDA with a company or had to keep something secret there, then accidentally leaked the name of a top secret project that way O.O . Plus, I would find it kinda akward as well to see an unreachable topic notification saying "New post by Netham45 in Here's what DJ told juju IRL http://ourl.ca/33934" while chatting O.O
« Last Edit: August 02, 2013, 02:36:20 pm by DJ Omnimaga »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: New Post Bot
« Reply #34 on: August 02, 2013, 02:37:49 pm »
Haha, good point. :)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: New Post Bot
« Reply #35 on: August 02, 2013, 05:37:48 pm »
why won't we actually somehow embed the new post notification in OIRC?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: New Post Bot
« Reply #36 on: August 02, 2013, 05:47:49 pm »
I wouldn't mind, as long as they also appears on EFnet and Omninet too.

Btw it would kinda make sense to make French and German posts show up in their respective channels, like they used to do. They could still appear in the main channel  as well, though, in case an English person can help on programming help.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: New Post Bot
« Reply #37 on: August 02, 2013, 05:56:48 pm »
it would be that on efnet and omninet they appear over the irc user OmnomIRC.
Also, the other chans is actually a good idea.... :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: New Post Bot
« Reply #38 on: August 03, 2013, 02:24:16 am »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
That's what I keep saying. :P

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: New Post Bot
« Reply #39 on: August 03, 2013, 05:30:19 am »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
That's what I keep saying. :P
Thats why I'm reiterating it :P
/e

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: New Post Bot
« Reply #40 on: August 03, 2013, 06:00:58 am »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
That's what I keep saying. :P
Thats why I'm reiterating it :P
That's why i didn't understand it :P
JK, lol, well, but with a real push system, wouldn't that also require adding some extra stuff to the posting.php (or however it is called)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: New Post Bot
« Reply #41 on: August 03, 2013, 05:06:24 pm »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
That's what I keep saying. :P
Thats why I'm reiterating it :P
That's why i didn't understand it :P
JK, lol, well, but with a real push system, wouldn't that also require adding some extra stuff to the posting.php (or however it is called)
Yes, that's what I've been saying! :P
/e

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: New Post Bot
« Reply #42 on: August 03, 2013, 05:07:13 pm »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
That's what I keep saying. :P
Thats why I'm reiterating it :P
That's why i didn't understand it :P
JK, lol, well, but with a real push system, wouldn't that also require adding some extra stuff to the posting.php (or however it is called)
Yes, that's what I've been saying! :P
So, um, do i have admin permission to try around in that area?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: New Post Bot
« Reply #43 on: August 03, 2013, 05:17:59 pm »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
That's what I keep saying. :P
Thats why I'm reiterating it :P
That's why i didn't understand it :P
JK, lol, well, but with a real push system, wouldn't that also require adding some extra stuff to the posting.php (or however it is called)
Yes, that's what I've been saying! :P
So, um, do i have admin permission to try around in that area?
Yes, just do the initial coding on your machine first (so install smf locally and then test it out) before you muck around on Omni itself.
/e

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: New Post Bot
« Reply #44 on: August 03, 2013, 05:24:16 pm »
well, they are send anyways to the db because they are stored (duh).
But yeah, i /could/ write a bot that hooks up with the db but idk how much cpu it would nom
It would be so much easier if you just had a node bot acting like a server that sent the post notifications to IRC whenever a call was made by Omnimaga to it. The posting function that stores the data to the database would also make a quick call to the post bot, thus causing push notifications :)
That's what I keep saying. :P
Thats why I'm reiterating it :P
That's why i didn't understand it :P
JK, lol, well, but with a real push system, wouldn't that also require adding some extra stuff to the posting.php (or however it is called)
Yes, that's what I've been saying! :P
So, um, do i have admin permission to try around in that area?
Yes, just do the initial coding on your machine first (so install smf locally and then test it out) before you muck around on Omni itself.
Ok. So just that i get it right......when i post on the serverside i do an internal call to the post bot which listens to an internal port on localhost....right?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!