Inactive [CHAT] MinecraftBot - Easy to use Minecraft-IRC chat integration

Discussion in 'Inactive/Unsupported Plugins' started by Rafa652, Mar 15, 2012.

  1. Offline

    Rafa652

    MinecraftBot is a plugin that joins an IRC channel as a bot. The bot displays messages coming from Minecraft and sends messages to Minecraft that come from IRC.

    The goal of this plugin is to be simple and easy to set up:
    1. Load the plugin
    2. Edit at least two lines in config.yml
    3. Reload the plugin
    Download, source code and more info: http://dev.bukkit.org/server-mods/irc-minecraftbot/
     
    zombieman1000 likes this.
  2. Offline

    Hmni.Tyty

    Looks very promising. Testing now. Will post the results. And perhaps some screen caps.
     
  3. Offline

    cool450

    So what does this plugin actually do???
     
  4. Hi, I was wondering whether this has integration with Nickserv? Also possibly can you set colours?

    Other than that, nice job. User friendly and simple.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  5. Offline

    Weird_Dude1119

    Im Having a Problem Where I Can Server/Console Messages In The IRC But Not Player Chat
     
  6. Offline

    Rafa652

    It can authenticate with NickServ and use /msg nickserv ghost if it's necessary, but that's about it.
    You can customize the colors shown on certain messages in the config file too. The default is teal for events and red for kicks and deaths, but it can be changed to whatever you want. You can even enter "normal" if you don't want any color on those lines.

    Could you be more specific? Are you using the command in the console or as a player? Also, do you have any plugins installed that also handle that command?
     
  7. Offline

    Weird_Dude1119

    Sorry I Ment I Can See Consle/Server and Join Messages In The IRC From Minecraft But Not The Player Chat

    Like If I Say Hello In The IRC You See That In The Server
    But If Some One Says Hello Back In The Minecraft Server I Cant See It In The IRC
     
  8. Offline

    Rafa652

    Well... it could be one of two things. Either Minecraft chat has been disabled in the config file ('chat: false' under 'mc' which is under 'event') or you have a plugin installed that's not letting the chat reach this plugin.
     
  9. Offline

    Weird_Dude1119

    Chat is Set To True Do You Know Any Reported Incompatable Plugins
     
  10. Offline

    Rafa652

    None that I know of. What other plugins are you using?
     
  11. Could you add support for the actual visual side of things on Minecraft.
    E.g. (Normal) #Tally: Blaaabba
    (Changed) !Tally:Hi
    Or custom IRC|Tally:Hi
     
  12. Offline

    Rafa652

    I am thinking of doing that soon enough. I'm going to end up being busy this week, so I may have that done by next week. Maybe sooner, maybe later. I'm not making any promises. I do have an idea of how to do this though.
     
  13. I am having a problem related to reloading the server. The only thing I can do is stop and re-start it. Any ideas?
     
  14. Offline

    Rafa652

    I'm not exactly sure what you mean. If you mean disconnecting and reconnecting from the IRC server, I've noticed that as well. It sometimes seems to think that it's still connected long after it should have noticed that it's not. I tried for so long to figure out where that problem could be coming from. The only thing that can be done right now is that if the plugin disconnects from the server and it doesn't know it, it's better to just reload the plugin so it can try connecting again.

    By the way, I'm nearly done with adding the formatting options. I haven't had the chance to test it properly yet but that will be done by the end of today.

    Edit: New version (v1.2.1) is up on BukkitDev. Adds support for formatting options that many people have requested and supports some new Minecraft control codes such as bold and underline.
     
  15. Offline

    TheJJ103

    Needs youtube video :)
     
  16. Don't worry, Turned out to be another plugin! :D Thanks for the Formatting!
     
  17. Looks very good. Maybe we will try it out
     
  18. Offline

    r0306

    There seems to be a conflict between this plugin and the Factions plugin. Can you please help me fix the issue (or possibly integrate support for Factions) as I can only receive messages from the IRC but messages from in-game Minecraft do not show up in the IRC channel. It's like a one-way route for the messages probably due to factions adding a new factions prefix and the irc plugin not being able to detect the modified playername. Thanks.

    Here is the link to the Factions chat configuration page. I'm still trying to figure this out: http://massivecraft.com/plugins/factions/config#Chat_configuration
     
  19. Offline

    Rafa652

    I don't use Factions and I'm not able to test it at the moment but based on what I saw in its source code, the code for handling messages hasn't been updated in a month so this wouldn't really be a new thing.
    The only way chat messages are blocked from other plugins is when the chat mode is set to "faction" or "alliance." It also seems to block chat messages if relation colors are enabled. The only way they're passed through to the rest of the plugins is when the mode is set to "public."

    If it's not that and it is what you say it is with a modified player name, does it cause an error to appear in the server log? If it does, could you paste it here?
     
  20. Offline

    r0306

    Hmm, there doesn't seem to be any error printed in the server console. Right now, I have only these two plugins and still nothing is showing up in the IRC. I removed all other plugins including the ChatManager and the Permissions plugin.
     
  21. Offline

    Rafa652

    I just tried it myself. For now, the way to fix it is to disable relation tagging which removes colors from faction names. You do it with the command "/f config chatTagRelationColored false"

    I'll look into adding support for Factions. I'll probably come across something that completely fixes this problem.
     
  22. Offline

    r0306

    I tried the config chatTagRelation and set it to false like you said, and the messages do seem to be working. But they are shown in white on the IRC channel so I have to highlight them with the mouse in order to see the words lol. :p
     
  23. Offline

    Rafa652

    Unfortunately I couldn't find anything. I guess if you want to use Factions with this plugin, that config value needs to be set to false.

    In the end, I did manage to add Factions support to the plugin. That will be for the next version, though. The next version is a complete rewrite of the plugin which will make it better for users to customize the lines created by it and easier for me (and maybe others) to add new features to it or for other plugins to be able to send their messages to IRC.
     
  24. Offline

    r0306

    Sounds great. I'm looking forward to the next update. ^_^
     
  25. Offline

    frdmn

    got a the following error while /reload ing:
    PHP:
    17:32:12 [SEVERECannot load plugins/MinecraftBot/config.yml
    org
    .bukkit.configuration.InvalidConfigurationExceptionunacceptable character '�' (0xFFFDspecial characters are not allowed
    in 
    "<string>"position 393
    at org
    .bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:177)
    at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
    at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
    at com.avisenera.minecraftbot.Configuration.getConfigFile(Configuration.java:164)
    at com.avisenera.minecraftbot.Configuration.load(Configuration.java:39)
    at com.avisenera.minecraftbot.MinecraftBot.onEnable(MinecraftBot.java:24)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:543)
    at org.bukkit.Bukkit.reload(Bukkit.java:182)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:469)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:596)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:565)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused byunacceptable character '�' (0xFFFDspecial characters are not allowed
    in 
    "<string>"position 393
    at org
    .yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
    at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    ... 
    23 more
    17
    :32:12 [SEVERECannot load configuration from stream
    org
    .bukkit.configuration.InvalidConfigurationExceptionunacceptable character '�' (0xFFFDspecial characters are not allowed
    in 
    "<string>"position 2677
    at org
    .bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:206)
    at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:121)
    at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
    at com.avisenera.minecraftbot.Configuration.getConfigFile(Configuration.java:164)
    at com.avisenera.minecraftbot.Configuration.load(Configuration.java:39)
    at com.avisenera.minecraftbot.MinecraftBot.onEnable(MinecraftBot.java:24)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:543)
    at org.bukkit.Bukkit.reload(Bukkit.java:182)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:469)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:596)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:565)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused byunacceptable character '�' (0xFFFDspecial characters are not allowed
    in 
    "<string>"position 2677
    at org
    .yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
    at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    ... 
    22 more
    17
    :32:12 [SEVERE] [MinecraftBotConfiguration is invalidCheck your syntax. (Remove any tab characters.)
    17:32:12 [SEVERE] [MinecraftBotError loading the configurationReload the plugin to try again.
    heres my config.yml:
    http://paste2.org/p/1972777

    edit: i found out that the 393rd character is probably the "§" and the 2677th character doesn't exist in the config.yml. The configuration is also UTF-8 encoded.

    edit2: yaml-online-parser doesn't find any errors.
     
  26. Offline

    Rafa652

    Yeah, I found out about the problem and left a note of it on the download page. All you can do right now is use a text editor to replace that bad character with the section symbol. I'm going to check what to do about that soon enough. Those errors will show up on the console each time the configuration is loaded for now, but if everything about the configuration is good then it shouldn't get in the way of anything.

    That specific error you had where it's asking you to check your syntax probably means that something's written wrong in the file. I noticed on the channel line you have a \ in front of the channel name. That could be what's causing the problem.

    Edit: I put up a new version. If you keep getting problems, just delete your old file, have the new version generate a new one and use that.
     
  27. Offline

    logoster

    i have a problem with the new version
    ok so it loads and connects fine but it wont show anything chat wise so you can say something in-game but doesnt show up on irc but if you say somethign on irc it DOES show up in-game oh and the faction variable is nice but here's what weird, if i dont have the faction system it works as it should but with the faction system it does not work right
     
  28. Offline

    vinic


    No matter what I do in vim, I can't get § to work right. I ended up removing all comments and § characters in Notepad, then pasting the barebones results back into vim. I still get the errors already mentioned, but the bot connects and everything works fine. It's bizarre.

    We really miss not having color, though. If you can work out a different special character, that would be great.

    Love how streamlined this plugin in. Other than this color issue, it's fantastic. Exactly what we want. Thanks for the hard work.
     
  29. Offline

    Rafa652

    Factions interferes with this plugin unless you run the command '/f config chatTagRelationColored false' which disables colors in faction tags in-game. There's no other way of making it work.

    Yeah... With all the problems people are having with it, I'm probably going to end up doing exactly that, and possibly using '&' as the character like most other plugins use.

    Thank you. I worked a lot to make sure this plugin is as streamlined as it can be while also giving the users choices on how it works. Glad to hear that it's working well.
     
  30. Offline

    Roervig2473


    Reloading is a bad thing and it often cause errors/bugs/exploits and even crashes. When installing a new plugin or configgin a plugin should you always restart/reboot and not reload. a good idea is to get a local server with Exact same maps, plugins and configs as the main server and test new plugins there to check for imcompetebillity(Proberly spelled it wrong), or other bugs. I will try install the plugin later and make a video on how to install it. but its currently 11:38 PM for me so im gonna wait for tmr.
     

Share This Page