Skip to content

Instantly share code, notes, and snippets.

View rexs123's full-sized avatar
🐢
Working from home

Rama Patel rexs123

🐢
Working from home
View GitHub Profile
@rexs123
rexs123 / hi.md
Last active December 30, 2019 05:11

Hello yes ok nope?

Keybase proof

I hereby claim:

  • I am rexs123 on github.
  • I am rexs123 (https://keybase.io/rexs123) on keybase.
  • I have a public key ASBgPJ3GVr59GwfuVgndAYYrAJkp7voY0AHMnxza3Rkowwo

To claim this, I am signing this object:

<?php
function webhook($webhook, $url, $title, $description, $embedColor, $footerIcon, $footerText, $authorName, $iconUrl, $botName, $botAvatar, $content) {
if(isset($embedColor)) {
if(strpos($embedColor, "#") > -1) {
$c=str_replace("#", "", $embedColor);
if (!preg_match("/#([a-fA-F0-9]{3}){1,2}\b/", $c)) {
$color = hexdec( strtolower($c) );
}
}
} else {