Hey guys, having a problem with C# lel.
Basically my objective is to create a "bot" that automates clientside tasks for the FTB Gamepedia Wiki. So far I've been successful in writing specific commands that execute specific functions, but I have a more grand vision in mind that doesn't just open a hardcoded page or link.
Put simply, I'd like specific keywords to trigger code that adds specific elements to the URL specific to that keyword. For example, if I wanted to open a page, it would simply be the main wiki URL, and then /[pagename].
Editing a page would add this to it: /index.php?title=[PageName or sublinks to pages]&action=edit
The code I've written right now as I stated above takes a more hard coded approach, and only opens direct links instead of using keywords that assign specific things to the URL. Does anyone have any advice on how I could go about this efficiently?
Cheers,
Luke
PS: List of keywords and main URL:
Main URL: Official Feed The Beast Wiki
Keywords:
1. Open: MainURL + [PageName (Taken from UserInput)]
2. Edit: MainURL + /index.php?title=[PageName or sublinks to pages]&action=edit
3. Purge: MainURL+ [PageName]?action=purge
Also important to note, ALL of these keywords would be entered as one command, so there needs to be code to split each word in the user input into a separate string that can be then referenced and used to produce the result. The annoying part here, is that all parts are needed, nothing is never used.
Basically my objective is to create a "bot" that automates clientside tasks for the FTB Gamepedia Wiki. So far I've been successful in writing specific commands that execute specific functions, but I have a more grand vision in mind that doesn't just open a hardcoded page or link.
Put simply, I'd like specific keywords to trigger code that adds specific elements to the URL specific to that keyword. For example, if I wanted to open a page, it would simply be the main wiki URL, and then /[pagename].
Editing a page would add this to it: /index.php?title=[PageName or sublinks to pages]&action=edit
The code I've written right now as I stated above takes a more hard coded approach, and only opens direct links instead of using keywords that assign specific things to the URL. Does anyone have any advice on how I could go about this efficiently?
Cheers,
Luke
PS: List of keywords and main URL:
Main URL: Official Feed The Beast Wiki
Keywords:
1. Open: MainURL + [PageName (Taken from UserInput)]
2. Edit: MainURL + /index.php?title=[PageName or sublinks to pages]&action=edit
3. Purge: MainURL+ [PageName]?action=purge
Also important to note, ALL of these keywords would be entered as one command, so there needs to be code to split each word in the user input into a separate string that can be then referenced and used to produce the result. The annoying part here, is that all parts are needed, nothing is never used.
Last edited: