Change method boot
use Carbon\Carbon;
public function boot()
{
config(['app.locale' => 'id']);
| /* Copyright (C) 2020 Yusuf Usta. | |
| Licensed under the GPL-3.0 License; | |
| you may not use this file except in compliance with the License. | |
| WhatsAsena - Yusuf Usta | |
| */ | |
| const Asena = require('../events'); | |
| const {MessageType} = require('@adiwajshing/baileys'); |
| import time | |
| from concurrent.futures import ThreadPoolExecutor | |
| from functools import wraps | |
| import requests | |
| from tqdm import tqdm | |
| def timeit(method): | |
| @wraps(method) |
| #coding:utf-8 | |
| import os,io | |
| from flask import Flask, request, redirect, url_for,Response,render_template,send_file,make_response,jsonify,send_from_directory | |
| from werkzeug import secure_filename | |
| from flask_cors import CORS,cross_origin | |
| ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) | |
| APP_ROOT = os.path.dirname(os.path.abspath(__file__)) | |
| UPLOAD_FOLDER = os.path.join(APP_ROOT, 'static\\upload') |
| <?php | |
| /** | |
| This Scheduler will run once every minute unlike the Heroku scheduler which only runs every 10 mintues. | |
| To use this scheduler with Laravel 5.4+ add this file to /app/Console/Commands/RunScheduler.php | |
| Register this file in app/Console/Kernel.php |
| to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
| stun: | |
| stun.l.google.com:19302, | |
| stun1.l.google.com:19302, | |
| stun2.l.google.com:19302, | |
| stun3.l.google.com:19302, | |
| stun4.l.google.com:19302, | |
| stun.ekiga.net, | |
| stun.ideasip.com, |
| # Combine multiple images into one. | |
| # | |
| # To install the Pillow module on Mac OS X: | |
| # | |
| # $ xcode-select --install | |
| # $ brew install libtiff libjpeg webp little-cms2 | |
| # $ pip install Pillow | |
| # | |
| from __future__ import print_function |
| using System; | |
| using System.Net.WebSockets; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace Coe.WebSocketWrapper | |
| { | |
| public class WebSocketWrapper | |
| { |