-
Notifications
You must be signed in to change notification settings - Fork 0
Adding a story to Index
So you finished writing your weirdest story? Or you want to test the story while writing? Or you want to how this weird thing works?
We got you salted! (Or covered maybe?)
Till now you may have started writing a story following this. Now it's time to bring it to the light!
The steps are :
-
Navigate to
src/story/stories/
-
Create a file named
yourstory.js
-
Copy everything from
chatur.js
-
Modify this line
const chatur = require('../../../stories/chatur.json');
To this
const chatur = require('../../../stories/yourstory.json');
Now all we need is to list the yourstory
-
Navigate to
src/story/storyList.js
-
Copy and paste the line
require('./stories/chatur')
-
Change
chatur
toyourstory
And Voila! you just listed your weird story for the weirdos to play .
To run it locally and test before opening a PR [Pull Request] . Follow Hosting the bot locally