Ankhsenaton @Ankhsenaton

France Online


Liked posts

Let your users contact you for two-way conversation through telegram for instant help access.

Creating a script to allow in-world users of OpenSimulator to chat with a channel on Telegram requires the use of HTTP requests. This involves creating a bot on Telegram that can receive and send messages, and an LSL script in Second Life to interact with this bot.

Step 1: Create a Telegram Bot
Open Telegram and search for BotFather.
Start a chat with BotFather and use the /start command.
Use the /newbot command to create a new bot, and follow the prompts to name it and get the token.
Step 2: Create a Webhook to Communicate with Telegram
You'll need a server to handle messages between OpenSimulator and Telegram. Here's a simple example using Python and Flask.

python

from flask import Flask, request
import requests

app = Flask(__name__)

TELEGRAM_BOT_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN'
TELEGRAM_CHAT_ID = 'YOUR_TELEGRAM_CHAT_ID'

@app.route('/webhook', methods=['POST'])
def webhook():
data = request.json
message = data['message']['text']
send_message_to_sl(message)
return "ok", 200

def send_message_to_telegram(message):
url = f"https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/sendMessa..."
payload = {
'chat_id': TELEGRAM_CHAT_ID,
'text': message
}
requests.post(url, json=payload)

def send_message_to_sl(message):
# This function should handle sending the message to Second Life.
pass

if __name__ == '__main__':
app.run(port=5000)
Set up the webhook URL for your bot using:

bash
https://api.telegram.org/bot/setWebhook?url=/webhook
Step 3: Create the LSL Script in OpenSimulator
The following LSL script will send a message to the webhook on your server. The server will then send this message to the Telegram channel.

lsl

string webhook_url = "http:///webhook";

default
{
state_entry()
{
llOwnerSay("Telegram chat bot script active.");
}

touch_start(integer total_number)
{
llOwnerSay("Please type your message to send to Telegram:");
}

listen(integer channel, string name, key id, string message)
{
// Prepare the message
string json = llEscapeURL("{\"message\": {\"text\": \"" + message + "\"}}");

// Send the message to the webhook
llHTTPRequest(webhook_url, [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/json"], json);

llOwnerSay("Message sent to Telegram: " + message);
}

on_rez(integer start_param)
{
llResetScript();
}

changed(integer change)
{
if (change & CHANGED_OWNER)
{
llResetScript();
}
}
}
Step 4: Set Up a Listener in LSL for Telegram Messages
If you want to receive messages from Telegram in OpenSimulator, you need to implement the send_message_to_sl function on your server and an HTTP server in LSL to listen for incoming messages.

Example of setting up an HTTP server in LSL:

lsl

default
{
state_entry()
{
llOwnerSay("Telegram listener script active.");
llHTTPRequest(webhook_url, [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/json"], json);
}

http_request(key request_id, string method, string body)
{
if (method == "POST")
{
// Decode the incoming message
string message = llJsonGetValue(body, ["message", "text"]);

// Send the message to local chat
llSay(0, "Telegram: " + message);
}
}
}
This setup involves running a server to handle the communication between OpenSimulator and Telegram. The example assumes familiarity with web server deployment. For a more robust solution, consider using a cloud service to host the server.

FreshVirtualWorld: https://www.youtube.com/watch?v=zejVrprx1uU 12 hours ago

ϵ( 'Θ' )϶ ϵ( 'Θ' )϶

*OPENSIM FIREWORKS V7 (VERSION 7) UPDATED RELEASE (less complexity than the previous version and effects now look more real - All you see on that picture is mesh! With sounds and animation! Available for FULLPERM and FREE at PARTY SECTOR inside a box for fireworks. Enjoy :)

P.s Version with particles available as well, if needed.

Ankhsenaton: Thank you, I will to to see that :-) (I hope you took lots of photos for the Daily Planet ;-) 5 days ago
Get Help Finding Stuff
---------------------------------
Polar bears are good at helping you find stuff, if you can find one. So, people are using the box more and more to request help. As you know, comments in the box get drowned out by not nice comments. Even the nice comments push the requests down until they disappear. But there is help with that. Just join the What Are You Looking For group. https://opensimworld.com/groups/1060

• Why: As I mentioned, there is a short time before requests in the box go to oblivion The posts in the group stick around, increasing the chances that you will find help from our over 100 members.
• How to use the group: Post about items you are, well, looking for...outfits, builds, shops, services, skills, and so on. At times, a group member will actually make what you are looking for. How cool is that? (Hint: very cool!)

What happens if you help? First, you become one of the forces for good in the galaxy. OK, in OS and OSW. We need more goodness here, right? And, about every two weeks, I post a list of our recent helpers, a bit of their profile info, and the address of their region(s).

The What Are You Looking For group. It’s what you’ve been looking for!

Harleyjannys: I joined! Thank you. 6 days ago
GET A TEXT MESSAGE ON YOUR CELL PHONE WHEN A REGION GOES DOWN.
How to get text messages, emails, pushover, telegram, and jabber alerts if a region goes down on your grid. Well it's easy. Download servermonitor from https://github.com/phpservermon/phpservermon Next unzip it and upload it to your linux box. I put the files in /var/www/html/servermonitor.
Next get on your web browser and go to websiteaddress.com/servermonitor/install.php Fill in the questions. Set up a web database of your choosing. Create a user and a password. I did this: create database servers; create user 'someone'@'localhost' identified by 'password'; grant all on servers.* to 'someone'@'localhost'; flush priveleges;
Once that is set up, it's a breeze. Use the web interface to add servers to your list. For regions just enter a service and the port number the region is on. example service, custom port, 8007 Then select how you want to be notified if the region goes down. e.g. email or sms text message, etc. Finally using crontab -e enter * * * * * /usr/bin/php /var/www/html/servermonitor/cron/status.cron.php You are done. Now if one of your regions goes offline you will know about it in 60 seconds. Also you can add websites to the list to be monitored, mail servers, any kind of server really. It has a looooong list of server types that can be added. (very handy). Additionally you can click on a region and see it's uptime plotted hourly, daily, weekly, monthly, and yearly as well as LATENCY. We all know how important latency is for showing lag. :) Enjoy!
Note: LINK FIXED
Note: When they go offline the console shows them as red. Also you get a text message, email, etc.

Jared Seda: This is so freaking awesome thank you for sharing this!!! 6 days ago
Whales for Sale!!!!

That's right, I am selling whales!

Why am I selling whales? Because I want to help you make an amazing Underwater area. You see, we have whales, many species of stingrays, sharks, jelly fish, hundreds of fish, hermit crabs, dolphins, mermaids, corals, ruins shipwrecks and more!

I spent 6 months finding things in opensim to build my underwater worlds...and now I want to help you build your underwater area.

Textures Trees & Scripts (and Whales)

the little store that is loved by builders and landscapers!

Ankhsenaton: So much things to get :) Thank you Safinemahoe2 ! 7 days ago

Working with our terrain generator on a massive test region 4096x4096, photo taken on an Asus Duo 2024 with 2 screens

https://www.wolf-grid.com/



Arcfury: That terrain looks great, but the sky also looks really good. It looks like you painted it, although trying to paint a "glow" is very difficult. 8 days ago



VickiJoanne: There's a problem with the very concept of "hate speech" and that is WHO exactly gets to define it? In The Box we've seen the recurrent appearance of one or more people who are clearly either trollin... 9 days ago

Beach entrance at JaM's Sex Hideaway...

Hot springs at Wet therme...

Let the all-new, sexy poolside fun begin!! ;-)

I found the root problem of the Opensim Community

It has become 100% apparent the one consistent problem of this community is criticism. Whether it be constructive, productive, observed or helpful it is automatically deemed an attack and the emotionally disturbed retaliate.

The severe lack of mental maturity is almost astounding but makes apparent as to why this website becomes a soap opera, every couple of days.

One person could post a new dress. Yes every sheeple will post ooh ahh and oh. Maybe it's an awesome dress? But if one person notices a defect, something missed or something out of place and says anything. AHHH OMMMaGAwwd!! The critiquer is immediately attacked, de-railed, accused of being uneducated and MUST have mental disabilities, a.k.a. un-hinged! The person is labeled a troll or a post hijacker, etc.

That one person would then be subjected to the rest of the sheeple, trying to one up the other for glory points, clout, community appreciation, medal of dishonor? Take your pick, it probably has been awarded and true.

In the end, what has been accomplished? The dress is put into obscurity and ignored. The creator lifted on some social chair among the crowd for being a VICTIM. Oh the horror that someone noticed an error.

Rather than thanks, let me fix it and re-post? Which would be the BEST option and solution. Very rare chance.

It is pretty pathetic and this post will be attacked because it goes against the grain of the sheeple. You must agree and obey and follow without individual thought, logic or suffer the wrath of the emotionally disturbed!

And people wonder why I rarely post so much so, that even Swiss coocoo clockmakers, accuse me of making a first post, because of the space in time in between them.

Once this community can mature, and stop with the self-righteousness and take criticism constructively, will it thrive. Only time will tell, but I doubt it. Because in the years I have been here, and this is no different than toxic secondlife, it hasn't changed for the better.

Give it a try and be better.

For the record, as an experiment, I will not partake in this discussion.

Here is a great chart to compare: Difference-Between-Constructive-and-Destructive-Criticism

Nico Kalani: SheaButter: For some reason, I can't reply to your comments either. I don't have you blocked, so I'm not sure what is going on. I'm sorry that I left off the sarcasm thingy on my comment. Yes, he is... 4 months ago

Early morning harrow- or the early bird gets the worm.

Now the frost has gone and the days warm..

Ms Saucy Bargee chugs off into the new morning to pick up another load for her narrowboat.


Lone Wolf: One of my favourite places especially because I live on a narrow boat. 1 years ago

Autumn is finally on us


Lilly Pond: Great job, indeed! One of these days I will go there for pictures, to my flickr page. I hope you don't mind! Ty for the beauty! 2 years ago

Benedict coal mine changes to the morning shift without stopping as the new days sun rises.

Still struggling to replace or reproduce my old fav Windlight settings. Seems my clouds are now camera shy.

four candles?


Phill895: Love the amount of detail put into this world. Amazing Sim! 2 years ago

Ukraine shines bright


xishi: ok It's time we cleared up some of this. Those flags on the wall are all there for a reason. From the left - Ruritania might be only a little place but it never left the EU. Hence the blue and gold s... 2 years ago