chris-burgin / bands_of_yore Goto Github PK
View Code? Open in Web Editor NEWTweet bot inspired by D&D. Keeps you up to date on your favorite bands of lore.
Home Page: https://twitter.com/bandsofyore
Tweet bot inspired by D&D. Keeps you up to date on your favorite bands of lore.
Home Page: https://twitter.com/bandsofyore
In /app/data/verbs.js
add more verbs that might be used in the olden times. The verbs are a held in an array. It will be very easy and simple to add them!
Requirements
If you look in /app/data/tweets.js
you will see an array of objects.
{
data: "[band] [venue]",
build: arr => `Catch ${arr[0]} playing at ${arr[1]}!`
}
This is a home made template system. The first line data
can be any of the following [band]
[venue]
[noun]
[verb]
[adjective]
. The second line is the tweet with the above items being inserted via template strings. Take a minute to look at the file and its fairly easy to understand whats going on once you understand template strings.
There are currently only two tweets in here. Create at least one new tweet and submit a pull request! Remember to have fun and be creative!
In /app/data/adjectives.js
add more adjectives that might be used in the olden times. The adjectives are a held in an array. It will be very easy and simple to add them!
Requirements
Add the ability for conjunctions to be used inside both components and tweets.
This is an easy addition of you trace [noun]
through the project.
Is in need of some function documentation at app/functions/*.js
. Ideally it will follow the below format for function documentation.
// ****************
// functionname()
// use: what your function does
// returns: what your function returns
// ----------------
// variable name: required/optional - type - what_its_used_for
// ****************
In files that currently have an existing function block (as seen below). Replace that function block with the new above function block.
// ****************
// Function
// ****************
If you want to make this a snipit in your editor I have listed both atom and vscode below
"fucntionBlockComment": {
"prefix": "bcf",
"body": [
"// ****************",
"// ${functionname()}",
"// use: ${what your function does}",
"// returns: ${what your function returns}",
"// ----------------",
"// ${variable name}: ${required/optional} - ${type} - ${what_its_used_for}",
"// ****************"
],
"description": "Block Comment for Function"
}
'Function Block Comment':
'prefix': '//fn'
'body': """
// ****************
// ${1:functionname()}
// use: ${2:what your function does}
// returns: ${3:what your function returns}
// ----------------
// ${4:variable name}: ${5:required/optional} - ${6:type} - ${7:what}
// ****************
"""
In /app/data/nouns.js
add more nouns that might be used in the olden times. The nouns are a held in an array. It will be very easy and simple to add them!
Requirements
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.