Skip to content

Adding a story to Index

eniamza edited this page Nov 16, 2020 · 4 revisions

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 to yourstory

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

Clone this wiki locally