Updates are finally done.
Changes compared to old:
Uses new Db similar to waifu (easier to test and edit)
Thanks to the new DB you can change the lang to make it digimon or persona or w/e else you’d want it to be.(Do not try this yet, I need to work on a issue with splits on urls and character names to make this work)
Attacks are now all Pokemon attacks with their own respective types (catching a Pokemon will generate a random type, be interesting to have a fire type squirtle)
Changes battle messages to match pokemon a little more. You can completely change how battle looks if you want.
Setting a pokemon in your team will show a (M) for main next to the name on your team
You can use !candy on any pokemon you own regardless if on team or not.
Boss will become the next player who defeats it. If you want it to be a legendary pokemon boss again just use !resetboss.
Added the ability to change a pokemon type if you own it with !attribute
You can add more types to the lang and it will load it into the attribute list command (requires a reboot)
Fixed URLs to use the pokedex link and removed the split function that includes the generation in the link. (I need to update this to keep the split function but also not use it under certain conditions.)
Fully tested and works (make sure to delete your old files of pokemon system)
More I can’t remember.
@Z.Ibrahimovic Glad to hear things are working better then. I would definitely check into being able to change those rules for the connection and then see if you can relax the pings on Twitch if possible. It might also resolve any other issues you might see with other services (GameWisp uses a WebSocket as does Discord).
As a huge favor to us – if Azure does tell you how to change any settings, can you let us know? That is something we would love to be able to document for any users in the future to help them out!
Let us know if you do see a Discord spamming again, we would probably need to look into the caching mechanisms that we implement for their API call.
I hope you don’t take my “talk to your Azure Account Manager” as a means to push you away, definitely not the intention, but, I would say, in the future, it might be a good place to start and then follow up with us if you are seeing some odd network behavior is all. It sounds like they may have been able to tell us what was going on faster than me hitting Google for a few hours to guess what was going on!
Remember the time is based on the local system. Twitch’s time is compared to the system for which the time command is ran on, be it a PC for BTTV or a server. If your server time appears to be skewed, ensure that NTP is installed and running. My local Linux server and PC are off by a few seconds from each other though, fairly normal while waiting for NTP to update at times.
I have not had a problem with raffle winners, to be honest, Scania and I did a test too with picking a new winner, although it does just randomize again. We found that with 3 of us, the same person was picked a couple of times before the random function picked someone else.
Please do me a favor though, open a new post on this, the idea of the forum is to track bugs in individual posts so that we can track to resolution and close them as well as have a record for anyone else with similar issues.
Otherwise, locking this post and marking as solved because the original issue was resolved.
To the GUI thing, I have on my ever-growing to-do list, to add a GUI to setup PhantomBot, as much as we can. After that, the Control Panel should, in theory, run most of the bot features.
I understand the Twitter portion is a bit painful, at one point we had it automated, but, unfortunately, there was some abuse by some PhantomBot user(s) and Twitter revoked the Twitter application that we had for posting which required us to go with a more unorthodox solution. We could very easily setup a read-only account again, but, I think most users want to post automatically, and manually, from PhantomBot.
@IllusionaryOne Sorry to revive an old post, but I’ve come across this gem browsing through the forums. So I’ve done what you’ve mentioned above, and placed the two files in their respective folders, however for the second file (pirategames.js in scripts/games folder) I’m getting a red line from lines 8 to 140. However, upon loading the bot (most recent bot version) it does say “Loaded Module: games/pirate.js (Enabled)”. Trying the commands !repair, !pirates, etc. listed directly underneath line 8 “Function”
/* List of pirate themed game commands. */
var commandList = [ ‘repair’, ‘pirates’, ‘duel’, ‘promotion’ ]; )
Do not work in chat. I must state that I haven’t edited either of the two files yet, so my assumption is, maybe that’s the cause. Apologies for the long comment, as I was trying to provide as much info as possible.
Couple things I’ve noticed don’t quite work when I use the visualizer.
the !ytp pause command will pause the music, but only for a couple seconds to a minute then the music will start again and when people requests music the current song that is playing will be skipped and the requested song will start playing and if people continue requesting music the current song playing just skips and starts playing the new song request.
Run this from the crontab of the user that runs PhantomBot:
0,4,9,14,19,24,29,34,39,44,49,54 * * * * /path/to/this/script/botServiceRunner.sh
I’m curious…will the above check every 5 minutes to see if PhantomBot is still executing in a normal fashion? And another question for anybody, how do you get the code section to appear for a post?
Yes, it will check every 5 minutes. You can also do */5 to make it look neat. (I see you figured that out)
Be sure to change the path! For example, if you put the script under /home/bot you would put /home/bot/botServiceRunner.sh
Use 3 backticks (`) in a row to enable the markdown.
@VexFX You could attempt to make your own JSON payload and send across every chat message, but, if your chat gets busy, well, <insert standard disclaimer here>. You would then need a service to consume that payload and do something with it. I think the following would work for creating a JSON payload, but, from there, up to you to implement a listener service. The sendToAll() is not entirely ideal as that sends to every listener that exists, I do need to work on an indexed sender at some point to perhaps send to only certain registered listeners.
Sigh, my fault yet again. I’ll push a fix as soon as I get to a computer tomorrow!
Regarding the tables, I am talking about html-tables. These get filled with values from Phantombots database as you view different parts of the interface, namely the so called jqueryui accordions. The problem I am facing is that I have combined several accordions on a number of places which means that this way of loading becomes invalid, as there are no longer any accordions in use. I want to solve this by letting the user load the table he needs when he needs them, but I have yet to get this to work. It’s basically the only thing keeping me from releasing my first full build.
chown changes the owner of the file or directory specified in the last argument to the user:group in the 2nd to last argument. The -R makes it recursively do all files/directories inside a directory you specify (if you put a directory as the last argument). sudo makes the command run as root
@ClocxHD I wanted to give a better reply now that I am not sitting in my car on my phone
You may use the Nightly Build, but, keep in mind that it has new features and code that has not been tested. There have been cases where I have damaged my database while working with the code, broken IRC, broken various APIs, generally speaking, caused all sorts of bad things to happen. What else can happen is as we prepare for a release, a new update script will be in the nightly and this edits the database, modules can be accidentally disabled, data removed that you are not expecting to be removed (but we are), and other unexpected items.
Unfortunately, we do not provide support for the Nightly Builds. We do happily accept bug reports in the Nightly Build section, but we definitely need details with those reports to help us determine the root cause and to fix errors.
That said, you are free to use the Nightly. But (1) backup your botlogin.txt and phantombot.db files. (2) keep an old copy of your stable version around in entirety. (3) swap back to the stable version if things go sideways.
Hope that helps more than the one-liners I was trying to Swype from my car.
Looks like your connection to PhantomBot Community Forums was lost, please wait while we try to reconnect.