Rated an average of 5 stars by 1 person

Magic 8ball Php Script for Twitch / Nightbot

Script Details:
Added on April 12, 2016 by coRpSE. Last modified November 8, 2016.
coRpSE accreditted the script to "coRpSE."

Description:
This script is a simple PHP script that allows you to have a !8ball command on your Twitch using NightBot.

Tags: 8, 8ball, ball, nightbot, twitch

Instructions:
1.) must have a host to host your file.

2.) Watch this video: https://www.youtube.com/watch?v=u3fpZ4KYj3w

3.) Enjoy.

Code:

<?php
# Snippet from PHP Share: http://www.phpshare.org

####################################################
## Script created by coRpSE
## Owner of www . headshotdomain . net
## For Instructions, ## Watch: www . youtube . com / watch ? v = u3fpZ4KYj3w
##
## You are free to modify this code any way you
## feel like, just give credit where credit is due . ###################################################

$m1 "It is certain";
$m2 "It is decidedly so";
$m3 "Without a doubt";
$m4 "Yes, definitely";
$m5 "You may rely on it";
$m6 "As I see it, yes";
$m7 "Most likely";
$m8 "Outlook good";
$m9 "I think, Yes";
$m10 "Signs point to yes";
$m11 "Reply hazy try again";
$m12 "Ask again later";
$m13 "Better not tell you now";
$m14 "Cannot predict now";
$m15 "Concentrate and ask again";
$m16 "Don't count on it";
$m17 "My reply is no";
$m18 "My sources say no";
$m19 "Outlook not so good";
$m20 "Very doubtful";

$rm = array($m1$m2$m3$m4$m5$m6$m7$m8$m9$m10$m11$m12$m13$m14$m15$m16$m17$m18$m19$m20);
$random_keys array_rand($rm1);
echo 
$rm[$random_keys];
?>

Review this PHP Script:

Rating:

Comments:


Login

User:
Pass:

Register

Not a member? Register today and receive the many free benefits of being a member!

Advertisements