Code Monkey home page Code Monkey logo

trackscape-discord-bot's Introduction

TrackScape Discord Bot

TrackScape Logo

Features

  • Receive in game Clan Chat messages in Discord via the RuneLite TrackScape Connector plugin
  • Send messages to the In Game Clan Chat via Discord. This uses the RuneLite TrackScape Connector plugin to send messages to the Clan Chat.
  • The bot sends embed and styled Broadcast Messages to a Discord Channel.

Getting a chat in in game from Discord

In Game Chat

Clan Chat from game in Discord

Clan Chat Broadcast


Commands

By default, only Discord users with Manage Server permissions can use the majorty of the commands. This can be changed via Integrations.

/info - Get information about the bot

/set_broadcast_channel channel: {channel} - Sets the to receive emded Broadcast messages

/set_clan_chat_channel channel: {channel} - Sets the channel to receive Clan Chat messages and records messages sent to Clan Chat in game

/get_verification_code - Get the verification code to link your RuneLite TrackScape Connector plugin to the bot


Broadcast Types

Diary Completed

Diary Completed Broadcast

Item Drop

Item Drop Broadcast

Raid Drop

Raid Drop Broadcast

Pet Drop

Pet Drop Broadcast

Quest Completed

Quest Completed Broadcast

and more!

Setup your own bot

Coming soon! Everything needed is in the .env and docker-compose.yml files. But detailed instructions will come soon.

Contributing

Coming soon!

Future Features

All of the features below depends on data gotten from Clan Chat messages. So if it is not sent to the bot or does not broadcast in CC will not be able to be sent to Discord and parsed. This is done by the RuneLite TrackScape Connector

  • Get clan member activity. Check for last time xp gained or last time a chat was sent
  • Pking
    • Check your K/D Pk ratio from Discord bot
    • Check your total kills and deaths from Discord bot
    • Check Gold earned and lost from Discord bot
    • In clan leaderboards
  • Collection Log Leaderboards - See where you log stands with the rest of the clan
  • Bossing PB Leaderboards - See where you stand with the rest of the clan for fastest kills
  • Simple Team Bingo - to be determined. May not happen
    • Bingo tiles by certain drops
      • Bingo tiles by sets. Barrows, Godsword, etc
    • Bingo tiles by certain bosses
    • Bingo tiles by certain xp gain
    • Ability to manually check/uncheck team tiles
    • Ability to auto check tiles
    • Check your bingo card from Discord bot

trackscape-discord-bot's People

Contributors

aid55 avatar fatfingers23 avatar

Stargazers

 avatar

Watchers

 avatar

trackscape-discord-bot's Issues

Create a Quest broadcast filter

Filter by quest difficulty. If its set to master than everything Master and above will broadcast. So would be Master and Grand Master

Set to Novice everything would broadcast.

Idealy it should get what the quest is from wiki, keep a local copy of quest list and their difficulties. The local copy will be kept like we do GE item maping on discord bot launch.

https://oldschool.runescape.wiki/w/Quests/List

Set Thresholds for price broadcasts

Example if amount is over 20m send broadcast.
Would include:

  • PKs
  • Items/raid drops
  • Loot keys when added

We can look at doing a discord Modal and have a input for each threshold. If that does not work each one will need a command to set. Also need a way to set if there's not an amount dont send. For instance if CC does not show amount dont send it

Missing Icons for Broadcasts

There are various icons missing for broadcasts; here's to track them.
image

  • New Level Milestone
  • [ ]
  • PB - Corrupted Gaunlet
  • PB - Zulrah
  • PB - Grotesque Guardians
  • PB - Duke Sucellus
  • PB - Muspah
  • PB - Fight caves
  • PB - Colosseum

Set Threshold for Diaries.

If a model is used in #3 then the threshold setting should be there. If not it's its own / command

Set lowest level diary broadcast that should be set. For instance if hard is set. Will only send broadcasts for Hard and Elite. Not med and easy.

Highscores order based on time instead of alphabetical

Similar to the OSRS highscores, if i get 892 log slots before robtom does, he shouldn't show up above me on the high scores. Just using this as an example haha

Another solution could be making us both the same rank in that situation!

Add Coffer broadcast type

When someone adds gp to the clan coffer it should be able to extract the info and send a new message to the broadcast channel

Tracking who leaves clan chat

Hello, would be perfect to see who leaves clan chat, so i could kick from discord too. Because i have private clan and it would be easier to track.
Thank you for this discord bot, it helps a lot for clans.

Notify Discord user if message is over 78 characters

The messages sent to CC from discord are truncated to first 78 charcters so they can fit. Need to have a check on the discord bot if someone goes over it replies and says it went over and show them the message that was sent

Doesn't work with group ironman

Hello!

i've tried this with my group ironman but it doesn't seem to work?

I've run the discord commands /set_broadcast_channel channel: {channel} and /set_clan_chat_channel channel: {channel} , and set the verification code in the TrackScape Connect RuneLite plugin, but messages don't sync?

Personal Best Leader Board Bugs

Pbs show under the wrong name

Since this is done dynamically. As in if TrackScape see's a new one never recorded before, it adds it. Some activities are not right. Here is a list to keep track to fix at a later time.

  • Jad shows as Fight Caves if picked up from broadcast message. We need to combine the 2. Probably Jad(but full name) since that's how runelite backend handles it
  • Priff laps have different capitalizations for [Aa]gility Course
  • !pb sol heredit does not work. I think this is the case for many bosses spelled fully if they have spaces in their name. I think it's sending as Sol heredit and not Sol Heredit.
    • Resolved with this commit. It was the space issue checking under Sol heredit when it needed to be Sol Heredit
  • Sol Heredit and Colosseum should be merged. Colosseum comes from in game broadcasts so can record it as Sol Heredit to match RL

RSNS with _(lowbar) have trouble making it to the PB Leaderboards

Jagex sees _ and a space as the same, some lookups must be doing it with _ instead of space but with a space is recorded

Appears to be an issue with decimal best times (00:30.6)

Some show, some do not. It’s either an issue with it not storing them properly or the js function that renders it out from seconds to a more readable format

Some bosses are doubling up

It appears some bosses are doubling up, but this appears to be a whitespace issue. For example there is a Whisperer and Whisperer Should be resolved with this commit

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.