Skip to content

Instantly share code, notes, and snippets.

View SkyzohKey's full-sized avatar

SkyzohKey SkyzohKey

View GitHub Profile
fn init_tox() -> Tox
{
// load Tox Profile
let mut xp: Vec<u8> = Vec::new();
let mut tox = match Tox::new(ToxOptions::new(), match File::open(Path::new(HFB_PROFILE))
{
Ok(mut data) =>
{
data.read_to_end(&mut xp).ok().expect("[ERROR] Impossible de lire le profil.");
@SkyzohKey
SkyzohKey / main.rs
Last active August 29, 2015 14:23
HF Bot - DON'T SUICIDE WHEN READING THIS PIECE OF BULLSHIT PLZZZZ !
#![allow(unused_variables)]
extern crate rstox;
use rstox::core::*;
use std::path::Path;
use std::fs::File;
use std::io::prelude::*;
// Static options.
static BOOTSTRAP_IP: &'static str = "195.154.119.113";