Skip to content

Added purgetoid and factbook#1

Open
aleph-oh wants to merge 4 commits intoOmnicsat:masterfrom
aleph-oh:master
Open

Added purgetoid and factbook#1
aleph-oh wants to merge 4 commits intoOmnicsat:masterfrom
aleph-oh:master

Conversation

@aleph-oh
Copy link
Copy Markdown

Added a command that queues messages to delete until it finds the specified message ID, and deletes the messages queued up to that point.

(Very much unsure if this will work, but it doesn't seem to have any syntax errors in it at somewhat more than a cursory glance.)

aleph-oh added 4 commits February 21, 2020 17:19
Deletes messages until it finds a specified channel id.

If this isn't possible, deletes nothing.
added a semicolon, otherwise irrelevant
Adds factbook command that, when run with a valid nation name, returns a valid link to said nation's factbook.

Automatically tries to convert spaces in names to underscores as well.

possible places to improve:
-mapping nation nicknames to the nation via switch-casing
-somehow returning that usernames aren't valid (hard to check sites for validity w/o a webserver to check and parse them, which is quite a bit of work and not just code)
@aleph-oh aleph-oh changed the title Added purgetoid Added purgetoid and factbook Feb 23, 2020
@aleph-oh
Copy link
Copy Markdown
Author

aleph-oh commented Feb 23, 2020

added factbook command as well, camelCased purgeToID for clarity's sake

factbook command is very much non-ideal b/c it doesn't check to see if the target link exists, but this is non-trivial b/c it requires testing the link with a web server, which varies in implementation (and complexity) based on the server/computer envision is hosted on (which I don't know and don't expect to).

(also, same disclaimer with regard to functionality: no obvious syntax problems, can't know if it'll run at the moment)

@Omnicsat
Copy link
Copy Markdown
Owner

I sort of forgot about implementing this, maybe I’ll get around to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants