1.0.0 • Published 2 years ago

snoomd v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

SnooMD Reddit Flavour Markdown Editor

Table of Contents

About

SnooMD is a markdown editor for Reddit Bots.

Getting Started

Simply require the package, and use the functions to enhance your text posts.

Installing

Download the single file SnooMD.js and put it in your project.\ Require the package and create a new Markdown object.

const {
    Markdown
} = require('SnooMD');
const md = new Markdown();

Usage

How to format your markdown strings:

const MarkdownString =
`Hello There! ${md.apply("Bolded Text!", md.bold)}\n
This will be ${md.superscript("SUPERSCRIPTED!")}\n
Here is a fancy codeblock:\n
${md.apply('console.log(markdown)',md.codeblock)}\n
Here is a named link: ${md.link("https://www.google.com","search")}\n
Here is some fenced text: \n${md.fence("Fenced text here for ya")}`

Logging this string will result in this:

Hello There! __Bolded Text!__ 

This will be ^(SUPERSCRIPTED!)

Here is a fancy codeblock:    

`console.log(markdown)`       

Here is a named link: [search](https://www.google.com)

Here is some fenced text:
```javascript
Fenced text here for ya
```

You can easily create tables by using the table function:

// Tables
const row1 = {
    rating: "5",
    type: "Trade",
    comments: "https://www.reddit.com/r/s/g6j7nix?utm_source=share&utm_medium=web2x&context=3"
}
const row2 = {
    rating: "2",
    type: "Giveaway",
    comments: `https://www.reddit.com/r/s/g6j7nix?utm_source=share&utm_medium=web2x&context=3`
}
const row3 = {
    rating: "1",
    type: "Sale",
    comments: "https://www.reddit.com/r/s/g6j7nix?utm_source=share&utm_medium=web2x&context=3"
}
const t = md.table(["Rating", "Type", "Comments"], [row1,row2,row3])

This will result in text formatted as such:

|Rating|Type|Comments|
|:-:|:-:|:-|
|5|Trade|https://www.reddit.com/r/s/g6j7nix?utm_source=share&utm_medium=web2x&context=3|
|2|Giveaway|https://www.reddit.com/r/s/g6j7nix?utm_source=share&utm_medium=web2x&context=3|
|1|Sale|https://www.reddit.com/r/s/g6j7nix?utm_source=share&utm_medium=web2x&context=3|

See more information about reddit markdown formatting here: https://www.reddit.com/wiki/markdown#wiki_blockquotes

Example

See what you can make with this useful tool!


Here is a directory of all users who have traded on r/Bwz3rBot along with links to the trade discussion threads.

All users are stored alphabetically. Usernames beginning with special characters can be found within the etc section.

[A](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/a) | [B](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/b) | [C](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/c) | [D](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/d) | [E](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/e) | [F](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/f) | [G](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/g) | [H](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/h) | [I](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/i) | [J](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/j) | [K](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/k) | [L](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/l) | [M](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/m) | [N](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/n) | [O](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/o) | [P](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/p) | [Q](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/q) | [R](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/r) | [S](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/s) | [T](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/t) | [U](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/u) | [V](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/v) | [W](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/w) | [X](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/x) | [Y](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/y) | [Z](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/z) | [etc](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/etc)


Users may submit reviews to this [bot command thread](/r/Bwz3rBot/comments/jaha01).

Commands must be formated with a directive of !rate. The first command argument must be the name of the user to be updated. The second argument must be a rating number between 1 and 5 followed by the word stars. The next arg must be the type of interaction. Was it either (a. sale, b. trade, c. giveaway)? If no type is specified, it defaults to a sale. All arguments following interaction type will be converted to a string, and will go into the comments section of the review. Command MUST contain an interaction type of you wish to include a comment.

!rate u/Bwz3r 5 stars sale We had a great interaction! I'm rating u/Bwz3r 5 stars!

This command will be processed by the bot and will find u/Bwz3r within the database. If the user does not exist within the database, the user will be added to the list of reviewed users and will retain the rating given along with any comments, and a link to the command comment. Any future ratings received by this user will be added to their file and any changes made will be instantly updated in the user directory under their alphabetized page. Users scores will be averaged according to number of reviews / scores rounded down. Stars will be awarded each user according to their calculated average rating. Any questions or errors found while using the bot can be submitted to u/Bwz3r. Thank you for reading!


[A](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/a) | [B](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/b) | [C](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/c) | [D](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/d) | [E](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/e) | [F](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/f) | [G](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/g) | [H](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/h) | [I](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/i) | [J](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/j) | [K](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/k) | [L](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/l) | [M](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/m) | [N](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/n) | [O](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/o) | [P](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/p) | [Q](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/q) | [R](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/r) | [S](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/s) | [T](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/t) | [U](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/u) | [V](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/v) | [W](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/w) | [X](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/x) | [Y](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/y) | [Z](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/z) | [etc](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/etc)



[A](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/a) | [B](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/b) | [C](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/c) | [D](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/d) | [E](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/e) | [F](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/f) | [G](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/g) | [H](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/h) | [I](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/i) | [J](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/j) | [K](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/k) | [L](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/l) | [M](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/m) | [N](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/n) | [O](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/o) | [P](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/p) | [Q](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/q) | [R](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/r) | [S](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/s) | [T](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/t) | [U](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/u) | [V](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/v) | [W](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/w) | [X](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/x) | [Y](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/y) | [Z](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/z) | [etc](https://www.reddit.com/r/Bwz3rBot/wiki/userdirectory/etc)


SnootyScraper

★★★★☆(average score:4, total reviews:2)

RatingTypeCommentsPermalink
4salepretty good sale!/r/Bwz3rBot/comments/jaha01/new_follow_thread/g95r9yj/
5tradeWhat a great Trade!/r/Bwz3rBot/comments/jaha01/new_follow_thread/g95r5wu/

stickRollBot

★★☆☆☆(average score:2, total reviews:2)

RatingTypeCommentsPermalink
1salehorrible sale!/r/Bwz3rBot/comments/jaha01/new_follow_thread/g95r79a/
4salealright sale!/r/Bwz3rBot/comments/jaha01/new_follow_thread/g95r8ln/
1.0.0

2 years ago