kkk2z1 commited on
Commit
48ec14a
·
verified ·
1 Parent(s): d1b1301

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -91,10 +91,26 @@ def ramdom_msg():
91
  text = date[2]["text"]
92
  by = date[2]["by"]
93
  call = date[2]["call"]
94
- send_to_channel(f"広告:{text}")
95
- send_to_channel(f"{by}様より。call:{call}")
 
 
 
 
 
 
 
96
  except Exception as e:
97
  log(f"広告{rand}番エラー:{e}",3)
 
 
 
 
 
 
 
 
 
98
 
99
 
100
 
 
91
  text = date[2]["text"]
92
  by = date[2]["by"]
93
  call = date[2]["call"]
94
+ send_to_channel(f"広告:{text}\n{by}様より。call:{call}")
95
+ except Exception as e:
96
+ log(f"広告{rand}番エラー:{e}",3)
97
+ elif rand == 3:
98
+ try:
99
+ text = date[3]["text"]
100
+ by = date[3]["by"]
101
+ call = date[3]["call"]
102
+ send_to_channel(f"広告:{text}\n{by}様より。call:{call}")
103
  except Exception as e:
104
  log(f"広告{rand}番エラー:{e}",3)
105
+ elif rand == 4:
106
+ try:
107
+ text = date[4]["text"]
108
+ by = date[4]["by"]
109
+ call = date[4]["call"]
110
+ send_to_channel(f"広告:{text}\n{by}様より。call:{call}")
111
+ except Exception as e:
112
+ log(f"広告{rand}番エラー:{e}",4)
113
+
114
 
115
 
116