• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum Discovery Unofficial Development
1 2 3 4 5 Next »
Forumlancer | forum notifications on Discord

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Pages (4): « Previous 1 2 3 4 Next »
Forumlancer | forum notifications on Discord
Offline Biggles
06-15-2022, 10:42 PM,
#11
Member
Posts: 187
Threads: 13
Joined: Feb 2015

I had to check, but I just sort it (in lexicographical order). Why, should the order be significant?

Aurora — Wingman — Forumlancer — ALG
  Reply  
Offline ronillon
06-16-2022, 12:02 AM,
#12
Copper Storage Depot
Posts: 563
Threads: 19
Joined: Oct 2012

Thanks for the reply, ah case sensitive lexicographical, makes sense then.

It was just a minor thing, I added a bunch of terms and wanted to check if I had all the variants.
The sorting of the watchlist did not make sense to me and was a bit difficult to see if all the variants I wanted were there.
Mainly stuff like: "BUY", "Buy" being after one another, but "buy" was way down the list, together with all terms starting with lowercase.

Bottom line is, could you easily change the sorting so it lists like this?
"BUY", "Buy", "buy", "SELL" instead of
"BUY", "Buy", "SELL", "buy"
If it requires work or you prefer it this way, no biggie.





[+]Signature:
►BattleZones
►Ore Mining
►Sci Data Anomaly "Mining"
►Sci Data Rewards
►POB
►POB Rules
►Bretonia ►Gallia ►Kusari ►Liberty ►Rheinland | ►Model/Name/Move
►MultiMonitor Setup - noBorderWindow
►BBCode
Reply  
Offline Biggles
06-16-2022, 12:14 AM,
#13
Member
Posts: 187
Threads: 13
Joined: Feb 2015

It would probably be better to make the pattern matching case insensitive, since you're not the only person to want to use it like that. I don't remember the reason I made it case sensitive to begin with, beyond marginally simpler code. Oh, and that the fact you can match parts of words means that something like "ALG" would match "algae" (a false positive), but I think the usefulness of case-insensitive matching outweighs that.

Aurora — Wingman — Forumlancer — ALG
  Reply  
Offline ronillon
06-16-2022, 12:51 AM,
#14
Copper Storage Depot
Posts: 563
Threads: 19
Joined: Oct 2012

I do not think you understand what I'm after. Unless there is some technical limitation I fail to see.
I want to change the odering of terms listed by f/watchlist command.
Not how you process the terms, when filtering the sidebar, for notifications to send.





[+]Signature:
►BattleZones
►Ore Mining
►Sci Data Anomaly "Mining"
►Sci Data Rewards
►POB
►POB Rules
►Bretonia ►Gallia ►Kusari ►Liberty ►Rheinland | ►Model/Name/Move
►MultiMonitor Setup - noBorderWindow
►BBCode
Reply  
Offline Biggles
06-16-2022, 01:50 AM,
#15
Member
Posts: 187
Threads: 13
Joined: Feb 2015

I understood what you meant, but the only reason you came across this problem is that you have so many versions of the same watch term with different casing, right? In that case, it seems better to me to make it so matching is case insensitive, meaning that instead of all those duplicate entries in your watchlist you could just have "buy".

Aurora — Wingman — Forumlancer — ALG
  Reply  
Offline Biggles
06-16-2022, 05:46 PM,
#16
Member
Posts: 187
Threads: 13
Joined: Feb 2015

Watch terms are now case insensitive, so instead of {"BUY", "Buy", "SELL", "buy", etc.} you can just have {"buy", "sell"}!

Aurora — Wingman — Forumlancer — ALG
  Reply  
Offline Xenon
06-25-2022, 08:05 AM, (This post was last modified: 06-25-2022, 08:06 AM by Xenon.)
#17
Member
Posts: 2,351
Threads: 190
Joined: Feb 2016

Hello bot designer Smile

First of all, thanks for that great bot. it is very useful.
I have a little comment, please. The bot does recognize the triggering words even if it is a part of a word. For example, I have "NSE" as a triggering word so when someone types in the topic of a thread the word "License" then catches the word and sends the post to me.... which is not correct. So can you make it only catch the word if not a part of another word? thanks in advance.

[Image: 2aD52st.png]
NEBULA INFORMATION BOT ☆ NEBULA DISCORD SERVER
XENON WEAPONS MARKET ☆ NEBULA GRAND PLAZA ☆ NEBULA TECHNOLOGIES

THE DISCOVERY POBCAST ☆ DISCOVERY SERVER RULES

Reply  
Offline Biggles
06-27-2022, 07:15 PM,
#18
Member
Posts: 187
Threads: 13
Joined: Feb 2015

Right, yes, this is the side-effect of making patterns case-insensitive that I hypothesised about above:

(06-16-2022, 12:14 AM)Biggles Wrote: It would probably be better to make the pattern matching case insensitive, since you're not the only person to want to use it like that. I don't remember the reason I made it case sensitive to begin with, beyond marginally simpler code. Oh, and that the fact you can match parts of words means that something like "ALG" would match "algae" (a false positive), but I think the usefulness of case-insensitive matching outweighs that.

The reason that it is beneficial to not match only whole words is that you would expect "To NSE: ..." or even something like "[NSE]" to get picked up. Note that there are no spaces between the watch term and punctuation in those titles. However it should be possible to change the programming to exclude matches for part of a word, while still allowing punctation around the term. I'll look at this later.

Aurora — Wingman — Forumlancer — ALG
  Reply  
Offline Corile
06-27-2022, 09:44 PM,
#19
C::iemka pl
Posts: 3,248
Threads: 267
Joined: Apr 2014

(06-27-2022, 07:15 PM)Biggles Wrote: Right, yes, this is the side-effect of making patterns case-insensitive that I hypothesised about above:

(06-16-2022, 12:14 AM)Biggles Wrote: It would probably be better to make the pattern matching case insensitive, since you're not the only person to want to use it like that. I don't remember the reason I made it case sensitive to begin with, beyond marginally simpler code. Oh, and that the fact you can match parts of words means that something like "ALG" would match "algae" (a false positive), but I think the usefulness of case-insensitive matching outweighs that.

The reason that it is beneficial to not match only whole words is that you would expect "To NSE: ..." or even something like "[NSE]" to get picked up. Note that there are no spaces between the watch term and punctuation in those titles. However it should be possible to change the programming to exclude matches for part of a word, while still allowing punctation around the term. I'll look at this later.

You could allow users putting in regex surrounded with slashes for those who need to get around that problem.




Reflections on the Revolution in Gallia
Custodi // High City of Heraklion // The Cult of Archangels
Log Filter // Post Creator // Manhattan
  Reply  
Offline Xenon
06-27-2022, 11:54 PM,
#20
Member
Posts: 2,351
Threads: 190
Joined: Feb 2016

(06-27-2022, 07:15 PM)Biggles Wrote: However, it should be possible to change the programming to exclude matches for part of a word, while still allowing punctation around the term. I'll look at this later.

Appreciate it, dude Smile - I think Corile idea is valid and can be a good fix, Good luck

[Image: 2aD52st.png]
NEBULA INFORMATION BOT ☆ NEBULA DISCORD SERVER
XENON WEAPONS MARKET ☆ NEBULA GRAND PLAZA ☆ NEBULA TECHNOLOGIES

THE DISCOVERY POBCAST ☆ DISCOVERY SERVER RULES

Reply  
Pages (4): « Previous 1 2 3 4 Next »


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode