commit 1f49c08cbbd9f202dc23088663a5d6232262723e
parent 9016dd1606669683625a50cbbe29ce8396002841
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Tue, 3 Oct 2017 21:30:02 +0200
Implement the stub proxy url by just specifying it on the cmdline
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/bot.d b/src/bot.d
@@ -74,6 +74,7 @@ struct Bot{
LookupTable lut;
Watcher w_irc,w_tele,w_stdin;
ev_loop_t *eventloop;
+ string proxy_url;
string[long] telegram_channels;
@@ -117,7 +118,7 @@ struct Bot{
}
string formatProxyURL(string file_id){
- return "FILE("~file_id~")"; //Stub. Implement this
+ return proxy_url~file_id;
}
string locationToOSMUrl(JSONValue loc){
@@ -463,6 +464,7 @@ struct Bot{
int main(string[] args){
Bot b=Bot(args[1]);
+ b.proxy_url=args[2];
b.initialize();
if(exists("savefile")){
auto f=File("savefile", "r");