Skip to content

DrunkenDruggy/phantombot-webpage-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Phantombot 2.3.8 or higher
php

Step 1

Create a confg file

Rename config.example.json to config.json
Change the values based on your setup

  • outputFolder: this is the folder that phantombot-cron.php is placed after being generated in step 2 and where outputs from the cron will be stored.
  • port: PhantomBot's base port.
  • protocol: the protocal used to talk to PhantomBot.
  • url: the url to PhantomBot.
  • webauth: the webauth token for PhantomBot found in botlogin.txt

Step 2

Genreate a custom cron file

php generate.php [module names]
Module names are the names of the folders in modules
Example: php generate.php commands quotes top-100-points

Step 3

Move phantombot-cron file to your server

Move or run phantombot-cron.php to your server
When this is ran it will output json files to the location you setup in config.json

Step 4

Wordpress integration

Make a new wordpress page template (google it)
Copy content from wordpress.php
Paste into new page template (I like to put it below the content load block
Update the $filename variable to point to the correct folder
In Wordpress make a new page and use the new template

About

Unofficial Phantombot custom scripts helper for generating external web-pages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%