Coder Social home page Coder Social logo

Comments (15)

ngoedde avatar ngoedde commented on July 26, 2024 1

If you want to create a new plugin make sure that the following steps are done:

  1. Create a new .NET 6 library project to /Plugins
  2. Make sure that it's built into "Build\Plugins"
  3. Add RSBot.Core to the project dependency of your new plugin
    3.1. Make sure to not copy "RSBot.Core.dll" to your output directory.
  4. Add a new class that implements IPlugin from the core.

Done. See existing plugin's .csproj file for more info reg. the dependency and build directory.

from rsbot.

ngoedde avatar ngoedde commented on July 26, 2024 1

You're welcome. If you have any questions you can PM me (@Wimbeam) in discord.

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

@SDClowen if you don't have time for this, I can work on it although I don't have much experience. I saw that events are not called with an enum, it would be good for me if I could have a list of events. In addition, you can guide me to make the part of saving the changes made in the plugin suitable for the project. regards.

from rsbot.

ngoedde avatar ngoedde commented on July 26, 2024

Hello,
there isn't a complete overview for all events. But you can find them by searching for "EventManager.FireEvent" / "EventManager.SubscribeEvent". The names/locations will tell you when the event is fired.
You may want to checkout the existing plugins first. There's no existing system you could use for your notifications so you will defnitely need to subscribe to the events on your own and then execute your notification logic.

Actually I like your idea but as you've already guessed we don't have time for this so I'm looking forward to your contribution 👍

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

Hi Niklas
Thank you for the information. I've been wanting to contribute to this project, and with this plugin I'll be able to make a start. But I'm having some difficulties because I'm not familiar with this ecosystem at all. I thought of copying an existing plugin and making the changes through it, but I couldn't do it. If you make this start for me, I'd like to continue with the other parts.

from rsbot.

BaroDevelopment avatar BaroDevelopment commented on July 26, 2024

Why don't u send what you want to Discord using a webhook? That's just a few lines of code

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

In the same way, you can handle it with a few lines of code. Everyone prefers to use some tools in their own way.

from rsbot.

BaroDevelopment avatar BaroDevelopment commented on July 26, 2024

What exactly do you want to send as notification.
Drops, unique spawns etc?

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

Yes, like these...

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

Thank you, I will proceed with these steps.

from rsbot.

ngoedde avatar ngoedde commented on July 26, 2024

I've had a second thought about this.
Actually you can place your changes into "RSBot.CommandCenter". Ther's even a tab in the UI "Notifications" already. So it's actually even intendet to be in there.

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

It seems like it would be easier to continue from there. I would have to learn how to both create the interface and save the settings when trying to do it as a separate plugin.

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

When the notification related stuff is there, it will be understood as being just for CommandCenter notifications. I think the general notification plugin makes more sense in context, when it's as a separate plugin.

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

This allows you to add multiple providers such as Discord. The user receives notifications from the platform they want.

from rsbot.

sn4dy avatar sn4dy commented on July 26, 2024

Let me first add the notification part to CommandCenter, and then we can talk about making a separate plugin if you want.

from rsbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.