You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the large influx of people wanting to help formulate information for the bot, I have decided to make a guide on how to contribute to the FAQ feature:
Above the line that starts with index =, write a python comment with the title of your article. E.g # How to write a FAQ article
Below the comment you just wrote, write a variable name that describes your article as briefly as possible and is in snake_case form. E.g make_faq_article =
Paste the following segment of code after the equals sign, replacing [Your Title Here] with the title you created in step 2:
discord.Embed(title='[Your Title Here]', colour=discord.Colour.purple(),
description='''
''')
Write your article or convert an existing article into markdown and make sure that your links are embedded in some sort of text unless it is absolutely necessary to do otherwise. Also ensure that within the link field of the embedded link you place an open and closing curly brackets ({}). E.g Welcome to the FAQ, [this is a link]({}). Thank you for reading
Copy and paste the finalised article into the description variable in step 4, right in between the sets of three apostrophes:
...
description='''
[your article here]
''')
Any URLs used for links in your article should go into the links variable at the very top of the code. To do this, on the very last link in the list, place a comma directly after this and before the number that is right after it. Then make a new line and insert your URL into some apostrophes, then adding a comment after the line with the number you found above and increment it by one. E.g:
At the end of your description variable (refer to step 4) and immediately before the ending parentheses, type .format( and enter in the links variable with the index of the number you gave it in step 7. E.g:
...
description='''
Welcome to the FAQ, [this is a link]({}). Thank you for reading
'''.format(links[35]))
(for multiple links, add a comma after you reference your first link and then write the next, repeating this process for as many links as you have)
At the end of the variable called index at the bottom of the code, place a comma directly after the last closing curly bracket (}) and immediately before the closing square bracket (]), then press enter and add your article name and variable to a dictionary. E.g {'How to write a FAQ article' : make_faq_article}]
Check that your changes follow the etiquette rules outlined below and then send out a PR.
Etiquette
Do not put tabs at the start of any line within the description variable in step 4
When adding links in step 7, check if the same URL already exists in the links variable. If it does, then use the number next to it in the links variable as the number you use for step 8 instead.
If you are using a very large amount of links, please try to make it look neat and don't put it all on one line. An example of how to do this is at the end of the useful_links variable in the code.
Only add links to the end of the links variable, not at any other index above.
As stated in step 5, do not write any URLs within any description variable unless absolutely necessary.
The text was updated successfully, but these errors were encountered:
Given the large influx of people wanting to help formulate information for the bot, I have decided to make a guide on how to contribute to the FAQ feature:
Open the FAQ.py file in a text editor.
Above the line that starts with
index =
, write a python comment with the title of your article. E.g# How to write a FAQ article
Below the comment you just wrote, write a variable name that describes your article as briefly as possible and is in snake_case form. E.g
make_faq_article =
Paste the following segment of code after the equals sign, replacing
[Your Title Here]
with the title you created in step 2:Write your article or convert an existing article into markdown and make sure that your links are embedded in some sort of text unless it is absolutely necessary to do otherwise. Also ensure that within the link field of the embedded link you place an open and closing curly brackets (
{}
). E.gWelcome to the FAQ, [this is a link]({}). Thank you for reading
Copy and paste the finalised article into the
description
variable in step 4, right in between the sets of three apostrophes:links
variable at the very top of the code. To do this, on the very last link in the list, place a comma directly after this and before the number that is right after it. Then make a new line and insert your URL into some apostrophes, then adding a comment after the line with the number you found above and increment it by one. E.g:description
variable (refer to step 4) and immediately before the ending parentheses, type.format(
and enter in thelinks
variable with the index of the number you gave it in step 7. E.g:(for multiple links, add a comma after you reference your first link and then write the next, repeating this process for as many links as you have)
At the end of the variable called
index
at the bottom of the code, place a comma directly after the last closing curly bracket (}
) and immediately before the closing square bracket (]
), then press enter and add your article name and variable to a dictionary. E.g{'How to write a FAQ article' : make_faq_article}]
Check that your changes follow the etiquette rules outlined below and then send out a PR.
Etiquette
description
variable in step 4links
variable. If it does, then use the number next to it in thelinks
variable as the number you use for step 8 instead.useful_links
variable in the code.links
variable, not at any other index above.The text was updated successfully, but these errors were encountered: